The TSL compatibility command tsl_atobjaddarray() does not work. It should populate a list box or similar control with the contents of an array. Instead, it does nothing.
You can work around this with a simple while() loop. For example, the following CScript fragment adds the contents of a ten-item array named Items:
tsl_atobjinit();
counter = 0;
while (counter < 10) {
tsl_atobjaddlist(Items[counter]);
counter++;
}
tsl_atobjdone(111,9,5,5,250,200,(0)|16385,"","",0,0,-1,"chosen", "");
The closing tsl_atobjdone() command must be included, but the format will vary depending on the control you’re populating.
CR 611, fixed in TinyTERM 4.40
This entry was posted
on Tuesday, March 20th, 2007 at 2:45 pm and is filed under CScript, Scripting, TSL.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.