14. Creating a Frame at Runtime : How You Can Build a Frame Dynamically : How You Can Create the Script : How You Can Initialize Variables
 
Share this page                  
How You Can Initialize Variables
After loading appropriate table names into the option field, the example starting frame initializes all variables whose values remain the same throughout the program. The following code from the starting frame's initialize block initializes variables:
/* Set up initial values. */
widthchar = 100;
heightchar = 200;
trimleft = 100;
trimspace = 100;
maxformheight = 3000;
maxformwidth = 9000;
fieldleft = trimleft + (33*widthchar) + trimspace;
vertspace = 250;
All values refer to one-thousandths of an inch.