ArgValue Property

Returns/sets an argument of any type.

Syntax

XcallBlock.ArgValue(Argument)

Parameters

Argument

An Integer value indicating the number of the XCALL argument whose value is to be read or set. The first argument is argument number one.

Return Value and Settings

A Variant containing the value of the numbered XCALL argument.

Remarks

The ArgValue property cannot be used to read or write unformatted (X-type) parameters. For these parameters either the GetStrArg and PutStrArg or the GetUnfArg methods should be used. The ArgType property can be used to determine the data type of the argument to see if these other methods need to be used.

When setting an argument return value, any numeric or string Variant type value may be specified, and this will be converted to the correct AlphaBASIC data type. When reading argument values, Variant data types Long, Double, or String will be returned for AlphaBASIC binary, floating point, and string arguments.