 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Jun 19, 2010 4:09 am
[3.20]BUG: #ADDKEY and %additem (different from my previous post) |
Not the same as the previous post regarding #ADDITEM.
1. On command line for untitled session, type TestVar=%null;#LOOP 10 {#ADDKEY TestVar TestKey %additem(%random(1,10),%db(@TestVar,TestKey))};#SHOWDB @TestVar
Everything shows up as normal.
2. On command line, type TestVar=%null;#LOOP 10 {#ADDKEY TestVar TestKey %additem(%random(1,10),@TestVar.TestKey)};#SHOWDB @TestVar
It puts quotes around ".TestKey|first whatever".
3. On command line, type TestVar=%null;#LOOP 10 {#ADDKEY TestVar TestKey %additem(%random(1,10),TestVar.TestKey)};#SHOWDB @TestVar
It adds '.TestKey' as part of the value.
Charneus |
|
Last edited by charneus on Sat Jun 19, 2010 4:54 am; edited 2 times in total |
|
|
 |
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Sat Jun 19, 2010 4:25 am |
Confirmed. It should be noted that this isn't an issue if the variable already exists.
|
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sat Jun 19, 2010 4:57 am |
Rather, it doesn't happen if the variable is already populated as a database. You can have an empty variable and cases 2 and 3 will still fail, but if you do case 1, keep the variable, do case 2, and case 3, then it'll work properly. Thanks for bringing that up, though. I forgot to show to clear the variable first.
Charneus |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jun 21, 2010 4:25 pm |
Confirmed and added to bug list.
|
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|