Difference between revisions of "CAEngine::SendCommand/zh"

(Created page with "将包含在Command属性内的字符串作为指令发送给ADE去执行。 关于指令和语法的详细信息请参考 Analytica脚本指南。")
 
(11 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
关于指令和语法的详细信息请参考[[Analytica Scripting Guide | Analytica脚本指南]]。
 
关于指令和语法的详细信息请参考[[Analytica Scripting Guide | Analytica脚本指南]]。
  
[[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.
+
在执行typescript指令时[[CAEngine::SendCommand/zh | SendCommand]]是一个比[[CAEngine::Send/zh | Send]]跟家快速的简单方法。使用[[CAEngine::Send/zh | Send]]需要以下两条语句执行一条指令。
  
 
  ade.Command = "profile Va1"
 
  ade.Command = "profile Va1"
 
  b = ade.Send( )
 
  b = ade.Send( )
  
This can be done with a single [[CAEngine::SendCommand|SendCommand]] statement.
+
只要一条[[CAEngine::SendCommand/zh | SendCommand]]语句即可实现。
  
 
  b = ade.SendCommand("profile Va1")
 
  b = ade.SendCommand("profile Va1")
  
= Return value =  
+
= 返回值 =  
  
Boolean (success or failure)
+
Boolean(布尔值:success或者 failure)
  
= Error Codes =
+
= 错误代码 =
''May not be a complete list of possible error codes''
+
可能错误代码列表可能不完整
  
  1 – “Unimplemented”
+
  1 – “未执行”
  2 – “Warning”
+
  2 – “警告”
  3 – “Lexical error”
+
  3 – “语法错误”
  4 – “Statement error”
+
  4 – “语句错误”
  5 – “Expression error”
+
  5 – “表达式错误”
  6 – “Execution error”
+
  6 – “执行错误”
  7 – “System error”
+
  7 – “系统错误”
  8 – “Fatal error”
+
  8 – “致命错误”
  9 – “Undefined variable error”
+
  9 – “未定义变量错误”
  10 – “Aborted”
+
  10 – “终止”
  
= See Also =
+
= 另请参考 =
  
* [[Analytica Scripting Guide]]
+
* [[Analytica Scripting Guide | Analytica脚本指南]]
* [[:Category:Typescript Commands|Typescript Commands]] index
+
* [[:Category:Typescript Commands|Typescript Commands]]索引
* [[CAEngine::Command]], [[CAEngine::Send]]
+
* [[CAEngine::Command/zh | CAEngine::Command]][[CAEngine::Send/zh | CAEngine::Send]]
* class [[CAEngine]]
+
* [[CAEngine/zh | CAEngine]]类型
* [[:Category:ADE Methods]] index
+
* [[:Category:ADE Methods/zh | 目录:ADE 方法]]索引
* [[Analytica Decision Engine (ADE) API]]
+
* [[Analytica Decision Engine (ADE) API  | ADE API]]

Latest revision as of 03:07, 21 October 2015

ADE User Guide > ADE Server Class Reference > CAEngine

Other languages:
English • ‎中文

bool SendCommand(string command)

将包含在Command属性内的字符串作为指令发送给ADE去执行。 关于指令和语法的详细信息请参考 Analytica脚本指南

在执行typescript指令时 SendCommand是一个比 Send跟家快速的简单方法。使用 Send需要以下两条语句执行一条指令。

ade.Command = "profile Va1"
b = ade.Send( )

只要一条 SendCommand语句即可实现。

b = ade.SendCommand("profile Va1")

返回值

Boolean(布尔值:success或者 failure)

错误代码

可能错误代码列表可能不完整

1 – “未执行”
2 – “警告”
3 – “语法错误”
4 – “语句错误”
5 – “表达式错误”
6 – “执行错误”
7 – “系统错误”
8 – “致命错误”
9 – “未定义变量错误”
10 – “终止”

另请参考

Comments


You are not allowed to post comments.