Assign

Metreos.ApplicationControl.Assign

Summary

Assign is used to assign a value to a variable.

Usage

Assign allows one to specify a value in the Value, Value2, Value3, and Value4 action parameters; a value specified in any one of these action parameters will be assigned to the variable in the respective ResultData, ResultData2, ResultData3, ResultData4 result data parameters.

The Assign action is an effective means to transfer the value of a local variable to a global variable. This can be done by specifying the local variable as a Value action parameter, and the global variable as the corresponding ResultData. For reference, another way a local-to-global assignment can be acheived is via the CustomCode action.

A specified value in one of the Value action parameters is passed directly to the type variable in the corresponding ResultData. The native type will invoke the best-fit Parse(System.Type) overload in order to complete the assignment of the value. See native types for more information.

Remarks

The built-in types which map to .NET types (System.String, System.Int32, System.DateTime, etc) will attempt to parse and convert a System.String input assigned to it, using the .NET type's Parse(System.String). For instance, if one specifies a literal 5 as Value, the Application Runtime Environment can successfully assign this value to a Int native type variable in ResultData because the .NET integer type supports using Parse(System.String) to convert a System.String to a System.Int32.

Action Parameters
Parameter Name.NET TypeDefaultDescription
Value *System.ObjectThe value specified for this action parameter will be assigned to ResultData.
Value2System.ObjectThe value specified for this action parameter will be assigned to ResultData2.
Value3System.ObjectThe value specified for this action parameter will be assigned to ResultData3.
Value4System.ObjectThe value specified for this action parameter will be assigned to ResultData4.
Result Data
Parameter Name.NET TypeDescription
ResultDataSystem.ObjectThe variable to hold the value specified in Value.
ResultData2System.ObjectThe variable to hold the value specified in Value2.
ResultData3System.ObjectThe variable to hold the value specified in Value3.
ResultData4System.ObjectThe variable to hold the value specified in Value4.

Branch Conditions 

success

No description.