Difference between revisions of "MC-Basic:VESEXECUTE"
(Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= <''string var name''> = VESExecute(<''string expression''>) |AVAILABILITY= Versions 3.7.x and higher |DESCRIPTION= Invocation of Basic interp…') |
m (1 revision) |
(No difference)
|
Revision as of 16:10, 13 December 2010
Invocation of Basic interpreter via virtual (internal) entry station.
Pass to a string the virtual entry station (CLI) and get a response. When VESEXECUTE is executed, it sends the command and waits for the response. While waiting for the response, it reads all the incoming messages from the VES message pipe. It discards all the non-relevant messages that it reads. This means that if an ASYNC message is printed to the VES message pipe while the VESEXECUTE command is waiting for the response, the user will never get this message since the VESEXECUTE deletes it. VESExecute returns the first 512 characters of the response string
Return value: Response or Error message. Valid reply has prefix “D:”, while error response has prefix “E:”
Syntax
<string var name> = VESExecute(<string expression>)
Availability
Versions 3.7.x and higher
Scope
Task
Limitations
Only from task context
Errors: N/A
Examples
?VESExecute(“dir *.prg”)
str1=VESExecute(“Load “+var2”)