Guess it's a bug
Posted: Fri Jun 02, 2006 12:51 am
The following code actually works:
Here are the variable defs:
variable collection:int poles
variable string poleSet = SettingXML[${xmlSettingsFile}].Set["Fishing Poles"]
variable byte x = 0
The reason I think this shouldn't work is there is an errant '}' in the poles:Set[] call.... Key[${x}}]
Shouldn't this be a syntax error? If not, why not?
Code: Select all
x:Set[0]
while (${x:Inc} <= ${${poleSet}.Keys})
{
poles:Set[${${poleSet}.Key[${x}}]}, ${x}]
}
Here are the variable defs:
variable collection:int poles
variable string poleSet = SettingXML[${xmlSettingsFile}].Set["Fishing Poles"]
variable byte x = 0
The reason I think this shouldn't work is there is an errant '}' in the poles:Set[] call.... Key[${x}}]
Shouldn't this be a syntax error? If not, why not?