 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Jun 06, 2010 4:18 am
[3.18d]BUG: #ADDITEM strips portions |
The following should return the same thing in $TestStr, but it doesn't. It only returns the first digit, stripping the "to#". This might be tied to the %additem weirdness I noticed before, but decided to make a new post on it.
| Code: |
#LOCAL TestStr TestAdd
$TestStr={1to4|5to8|9to12}
#FORALL $TestStr {#ADDITEM $TestAdd {%i}}
#SAY $TestAdd |
Charneus
As a side note, changing #ADDITEM $TestAdd to #SAY correctly displays 1to4, etc. |
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jun 07, 2010 5:03 pm |
Confirmed. I think it's the json parser thinking that it is parsing a number and then stopping when it gets to the text "to" after the number. Definitely a bug in their code, but hopefully I can fix it.
Btw, you don't need the {} around %i. That's a "zmud-ism". Just doing "#ADDITEM $TestAdd %i" is all you need. |
|
|
|
 |
|
|
|
|
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
|
|