|
evaluate
| Previous topic: |
Next topic: |
|
evaluate |
topic started 6/19/1999; 5:32:00 PM last post 6/19/1999; 5:32:00 PM |
|
Brent Simmons - evaluate 
6/19/1999; 5:32:00 PM (reads: 9943, responses:
0) |
| Syntax |
evaluate (string)
|
| Params |
string is a string value.
|
| Action |
Compiles and interprets string as a Frontier script.
|
| Returns |
Returns the value of the string when it is run as a script
|
| Examples |
evaluate ("msg (\"Hello, Frontier addict!")")
» true
Returns the result of string argument being executed as a script.
if dialog.ask ("Enter script:", @s){evaluate (s)}
» true
|
| Errors |
A variety of errors can be generated if string is not a valid Frontier script, depending on what is wrong with it.
|
| Notes |
The evaluate verb is useful primarily in situations where you are building elements of a script dynamically, storing them in the Object Database or in a variable and wish to execute the result.
|
| See Also |
runSelection
|
|
|
|
|
|
UserTalk online reference for Manila and Radio UserLand programmers
|
|
|