Value.convert Method

Tries to convert the Value to another ValueType. If conversion fails, the Value will remain unchanged. Available conversions are: - int to double - double to int if there are no fractional digits - string containing number to double or int - string containing "true" or "false" to boolean - string in ISO-8601 to timestamp - string in base64 to binary - string in base64 containing 64 bit integer to int64 - struct to alarm - struct to message - struct to event - map to vector - struct to vector

Namespace:  TcHmiSrv
Assembly:  TcHmiSrvExtNet (in TcHmiSrvExtNet.dll) Version: 3.0.0.0

Syntax

C#

public Value convert(
    ValueType type
)

Parameters

type

Type: TcHmiSrv.ValueType
The ValueType to convert to.

Return Value

Type: Value
The converted Value.

Reference

Value Class

TcHmiSrv Namespace