2.5.7.7 vSignedLong

The vSignedLong custom input type specifies a signed 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 a signed 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 a signed 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 less than -2147483648 or greater than 2147483647, the input argument is not valid.

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 vNumAny, Type is equal to the token type of the source token. Otherwise, Type is equal to the token type of PtgNum.