HTBasic Help
×
Menu
Index

Choosing Widget Attribute Order

 
The order in which attributes are specified following SET in a CONTROL or ASSIGN command is the order in which they are set. Proper ordering of attributes in the statement affects program behavior. Generally, you should SET attributes in a hierarchy from the general to the specific.
 
For example, in a BARS widget BAR COUNT should be set before CURRENT BAR, as shown in the following line. Otherwise, CURRENT BAR might reference a bar that does not exist, causing an error.
 
    CONTROL @Bars;SET ("BAR COUNT":3,"CURRENT BAR":,2)