Difference between revisions of "CAEngine::SendCommand"
(Marked this version for translation) |
|||
Line 5: | Line 5: | ||
<translate> | <translate> | ||
− | = bool SendCommand(string command) = | + | = bool SendCommand(string command) = <!--T:1--> |
+ | <!--T:2--> | ||
Sends the string «command» property as a typescript command to be executed by ADE. See the | Sends the string «command» property as a typescript command to be executed by ADE. See the | ||
[[Analytica Scripting Guide]] for details of commands and syntax. | [[Analytica Scripting Guide]] for details of commands and syntax. | ||
+ | <!--T:3--> | ||
[[CAEngine::SendCommand|SendCommand]] is a single method that is faster way to execute a typescript command than using the [[CAEngine::Send|Send]] method. Using [[CAEngine::Send|Send]] requires these two statements to execute a command. | [[CAEngine::SendCommand|SendCommand]] is a single method that is faster way to execute a typescript command than using the [[CAEngine::Send|Send]] method. Using [[CAEngine::Send|Send]] requires these two statements to execute a command. | ||
− | ade.Command = "profile Va1" | + | <!--T:4--> |
+ | ade.Command = "profile Va1" | ||
b = ade.Send( ) | b = ade.Send( ) | ||
+ | <!--T:5--> | ||
This can be done with a single [[CAEngine::SendCommand|SendCommand]] statement. | This can be done with a single [[CAEngine::SendCommand|SendCommand]] statement. | ||
− | b = ade.SendCommand("profile Va1") | + | <!--T:6--> |
+ | b = ade.SendCommand("profile Va1") | ||
− | = Return value = | + | = Return value = <!--T:7--> |
+ | <!--T:8--> | ||
Boolean (success or failure) | Boolean (success or failure) | ||
− | = Error Codes = | + | = Error Codes = <!--T:9--> |
''May not be a complete list of possible error codes'' | ''May not be a complete list of possible error codes'' | ||
− | 1 – “Unimplemented” | + | <!--T:10--> |
+ | 1 – “Unimplemented” | ||
2 – “Warning” | 2 – “Warning” | ||
3 – “Lexical error” | 3 – “Lexical error” | ||
Line 37: | Line 44: | ||
10 – “Aborted” | 10 – “Aborted” | ||
− | = See Also = | + | = See Also = <!--T:11--> |
+ | <!--T:12--> | ||
* [[Analytica Scripting Guide]] | * [[Analytica Scripting Guide]] | ||
* [[:Category:Typescript Commands|Typescript Commands]] index | * [[:Category:Typescript Commands|Typescript Commands]] index |
Latest revision as of 20:31, 15 June 2015
ADE User Guide > ADE Server Class Reference > CAEngine
bool SendCommand(string command)
Sends the string «command» property as a typescript command to be executed by ADE. See the Analytica Scripting Guide for details of commands and syntax.
SendCommand is a single method that is faster way to execute a typescript command than using the Send method. Using Send requires these two statements to execute a command.
ade.Command = "profile Va1" b = ade.Send( )
This can be done with a single SendCommand statement.
b = ade.SendCommand("profile Va1")
Return value
Boolean (success or failure)
Error Codes
May not be a complete list of possible error codes
1 – “Unimplemented” 2 – “Warning” 3 – “Lexical error” 4 – “Statement error” 5 – “Expression error” 6 – “Execution error” 7 – “System error” 8 – “Fatal error” 9 – “Undefined variable error” 10 – “Aborted”
See Also
Comments
Enable comment auto-refresher