2.5.7.10 vUnsignedLong

The vUnsignedLong custom input type specifies an unsigned long integer derived from a source token that MUST be a vNumAny, PtgStr1, PtgCy, or a PtgMissArg. It contains the following computed properties.

Value

This property specifies an unsigned long integer derived from the source token value as follows.

If the source token value can be converted to a double, as described in [MSDN-ToDouble], Value is equal to an unsigned long integer calculated as follows.

Use the conversion method described in [MSDN-ToDouble] to obtain a double value. If the double value is not an integer, round the value towards zero to the next integer. If the integer is greater than or equal to zero, Value is equal to the integer modulo 4294967296. Otherwise Value is equal to the sum of the integer modulo 4294967296 and 4294967296.

If the source token value is equal to TRUE (case insensitive), Value is equal to 1. If the source token value is equal to FALSE (case insensitive), Value is equal to 0.

If the source token is a PtgMissArg, Value is equal to 0.

In all other cases, the input argument is not valid.

Type

This property specifies a token type. If the source token is a vUnitType, Type is equal to the token type of the source token. Otherwise, Type is equal to the token type of PtgNum.