User Input
Variables that are unknown to the processor at compile time must be supplied by the user at run time. In the following example, the value for P1 is supplied by the user:
READ 'Indicate center of circle' P1
The system displays the prompt:
Indicate center of circle
The next value entered by the user will be assigned to the variable P1. The user can type in the x,y coordinates of the point, or pick the point. In either case, the coordinates are assigned to the variable P1.
Local variables must be defined at the beginning of the macro. However, a programmer might prefer to define these variables after writing the rest of the macro.
Was this helpful?