Lingo Dictionary > D-F > do |
![]() ![]() ![]() |
do
Syntax
do
stringExpression
Description
Command; evaluates stringExpression
and executes the result as a Lingo statement. This command is useful for evaluating expressions that the user has typed and for executing commands stored in string variables, fields, arrays, and files.
Using uninitialized local variables within a do
command creates a compile error. Initialize any local variables in advance.
Note: This command does not allow global variables to be declared; these variables must be declared in advance.
The do
command works with multiple-line strings as well as single lines.
Example
This statement performs the statement contained within quotation marks:
do "beep 2" do commandList[3]
![]() ![]() ![]() |