Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

executable_expressionT_executable_expressionExecutableExpressionExecutableExpressionexecutable_expression (算子名称)

名称

executable_expressionT_executable_expressionExecutableExpressionExecutableExpressionexecutable_expression — Execute a stand-alone operation.

参数签名

executable_expression( : : Expression : )

Herror T_executable_expression(const Htuple Expression)

void ExecutableExpression(const HTuple& Expression)

static void HOperatorSet.ExecutableExpression(HTuple expression)

def executable_expression(expression: MaybeSequence[Union[int, float, str]]) -> None

描述

The HDevelop language contains a few operations that are executed stand-alone, i.e., not as an expression within another operator call. 该算子 executable_expressionexecutable_expressionExecutableExpressionExecutableExpressionExecutableExpressionexecutable_expression allows to enter such stand-alone operations into 该算子 window of HDevelop. In the full text editor however, those operations are entered verbatim.

Currently, the following modifying vector operations are stand-alone and can only be used in an executable expression:

For further details about these operations please refer to the HDevelop User's Guide.

Even though ExpressionExpressionExpressionExpressionexpressionexpression formally is presented as a control parameter, nonetheless it is also possible to execute stand-alone operations with iconic vectors.

参数表

ExpressionExpressionExpressionExpressionexpressionexpression (input_control)  number-vector HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Operation to be executed.

例程 (HDevelop)

read_image (Image1, 'fin1')
read_image (Image2, 'fin2')
ImageVector.insert(1, Image1).insert(2, Image2)
* process vector
ImageVector.clear()

结果

If the values of the specified parameters are correct, executable_expressionexecutable_expressionExecutableExpressionExecutableExpressionExecutableExpressionexecutable_expression returns 2 ( H_MSG_TRUE) . Otherwise, an exception is raised and an error code returned.

模块

Foundation