Zugg MASTER
![](images/avatars/164475849040f41c23b22fe.gif)
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Sun Jun 27, 2010 3:26 pm |
This is because your @Box_Sides variable is set as AutoType and not a StringList type. If you add "type="stringlist"" to the XML attributes then it will create the JSON table when you import it. Or use %vartype(box_sides,list).
If you have an existing string list in a string variable, you can create the json table using:
newvar = %json(@stringvar)
Normally you won't need to worry about this and once you set the proper variable type then the default value should work.
Also, you shouldn't really need to worry about this because the first time you use a list function (like %numitems, %item, etc) the variable will get converted to a string list automatically (thus, the "Auto" type) But until you use the variable, CMUD doesn't know whether to treat the AutoType as a string or as a string list. |
|