PRB: AppleScript: "Results" are Not Implemented (154981)
The information in this article applies to:
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q154981 SYMPTOMS
AppleScript returns the message "the variable x is not defined" when it
tries to execute the "set x to result" command. "Result" is a predefined
variable in AppleScript. It contains the results of the most recently
evaluated expression or the most recently executed command. If a command
returns nothing, the result is not defined.
CAUSE
An equal sign (=) placed in front of a function tells FoxPro to compile the
function as a command. However, commands have no return value in FoxPro.
The equal sign tells the compiler that the return value is to be ignored
because it is not being assigned to anything.
RESOLUTION
Do not use an equal sign in front of the function. The result variable will
then be assigned to the value returned by the function.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/14/1999 |
---|
Keywords: | kb3rdparty KB154981 |
---|
|