|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Fri Jun 04, 2010 10:34 pm
[3.18d] BUG: Unable to delete keys with multiple words. |
#delkey fails when you specify a key with multiple words.
Code: |
#say ""
#print {Clearing testvar}
testvar = %null
#print {Printing testvar}
#showdb @testvar
#print {Adding key 'word'}
#addkey testvar {word}
#print {Printing testvar}
#showdb @testvar
#print {Deleting key 'word'}
#delkey testvar {word}
#print {Printing testvar}
#showdb @testvar
#print {Adding key 'two words'}
#addkey testvar {two words}
#print {Printing testvar}
#showdb @testvar
#print {Deleting key 'two words'}
#delkey testvar {two words}
#print {Printing testvar}
#showdb @testvar |
Quote: |
Clearing testvar
Printing testvar
Adding key 'word'
Printing testvar
word:
Deleting key 'word'
Printing testvar
Adding key 'two words'
Printing testvar
two words:
Deleting key 'two words'
Printing testvar
two words: |
|
|
Last edited by GeneralStonewall on Sat Jun 05, 2010 1:28 am; edited 2 times in total |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 04, 2010 10:56 pm |
Confirmed, but also you should be using " double-quotes and not the ' single quote.
Not sure why it doesn't work with a space in the key. Looks like something in the 3rd party SuperObject code, but I'll add it to the list. |
|
|
|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Fri Jun 04, 2010 10:58 pm |
The single quote was just for display purposes.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 04, 2010 11:02 pm |
Oops, yep you are right. Your #DELKEY command was fine.
|
|
|
|
|
|