Free 14-Day Evaluations    
Product Downloads    

Sign in     


DESKTOP MOBILE DOWNLOAD PURCHASE SUPPORT INFO COMPANY
 Home  >>  Support  >>  Knowledge Base

TSL_AtObjAddArray Does Not Work

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

Comments are closed.

  Copyright © 2024 Century Software, Inc. All Rights Reserved999 TERMS OF USE PRIVACY POLICY EULA