ArgType Property

Returns the type of an argument.

Syntax

XcallBlock.ArgType(Argument)

Parameters

Argument

An Integer value indicating the number of the XCALL argument to return the type of. The first argument is argument number one.

Return Value

An ArgumentTypeEnum value indicating the AlphaBASIC data type of the specified argument.

Remarks

The ArgType property returns the AlphaBASIC data type as opposed to use of the ArgValue property in an expression such as VarType(ArgValue(nArgument)) which will return the Visual Basic data type. The following table shows the possible data type values returned.

ArgumentTypeEnum Value

AlphaBASIC  Type

jbatUnformatted

Unformatted – map ,X,

jbatString

String – map ,S,

jbatFloatingPoint

Floating point – map ,F,

jbatBinary

Binary – map ,B,

jbatArray

The argument is an array

 

The jbatArray value can be ORed or summed with any of the other type values. For example a binary array argument would return the data type value of ‘jbatBinary+jbatArray’.