命令结果
5 个节点
本页内容 5
错误输出
函数程序打印到错误流的内容,按 UTF-8 读取,去掉最后一行之后的换行。
签名
错误输出(Command Result: Command Result) -> 文本
string Error(CommandResult Command Result)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Command Result | Command Result | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 命令结果
- 所属包
- 标准库
退出代码
函数程序结束时的代码:按惯例成功时为 0,否则为其他值。
签名
退出代码(Command Result: Command Result) -> 整数
int ExitCode(CommandResult Command Result)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Command Result | Command Result | — |
返回
| 结果 | 整数 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 命令结果
- 所属包
- 标准库
输出
函数程序打印到输出的内容,按 UTF-8 读取,去掉最后一行之后的换行。
签名
输出(Command Result: Command Result) -> 文本
string Output(CommandResult Command Result)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Command Result | Command Result | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 命令结果
- 所属包
- 标准库
成功
函数程序是否以代码 0 结束,程序用它表示成功。
签名
成功(Command Result: Command Result) -> 真否
bool Succeeded(CommandResult Command Result)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Command Result | Command Result | — |
返回
| 结果 | 真否 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 命令结果
- 所属包
- 标准库
转为文本
函数The exit code and what was printed, for showing.
签名
转为文本(Command Result: Command Result) -> 文本
string ToString(CommandResult Command Result)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Command Result | Command Result | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 事件 例程 状态机状态
- 声明于
- 命令结果
- 所属包
- 标准库