GxVariant: SetRefArray

SetRefArray

Recreate the referenced gxVariant as an integer array converted from a Variant array.



 Public Function SetRefArray(
	  ByVal Type As String,
	  ByVal newValue As Variant ) As Boolean

Parameters

Type
The type of the array to convert into: "I4" means integer array, "U1" means byte array.
newValue
The input Variant array.

Return Values

On error FALSE (0) is returned and the error code/string in the GX system is set appropriately.

Languages

[Visual Basic] Public Function SetRefArray(ByVal Type As String, ByVal newValue As Variant) As Boolean

[Delphi] function SetRefArray(Type: String; newValue : OleVariant) : Boolean;

[C++] BOOL SetRefArray(LPCTSTR Type, const Variant newValue);

Remarks

The Variant array is a Variant.

See Also

Class GxVariant Overview GxVariant Properties GxVariant Methods SetArray SetRefPath