Script Improvement Advice

curry curry at pair.com
Thu Jun 5 07:10:01 EDT 2003


Why not set up a tabbed (table) field first to enter all your data in 
rows, then use a script to read it into a custom property array. Then 
a handler to put the appropriate data from that array into the fields 
based on the name or number of the element (whatever you use for 
array index), and call that handler from each button, or another 
way--call it from the card's mouseup if the name of the target shows 
it is one of the element buttons. (Use the names of the buttons to 
determine the array index for the call.)

Also, you could make a function to do the superscript formatting for 
you, rather than doing it yourself one by one.

Curry



More information about the use-livecode mailing list