GxVariant: SetArray

SetArray

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



 Public Function SetArray(
	  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 SetArray(ByVal Type As String, ByVal newValue As Variant) As Boolean

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

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

Remarks

The Variant array is a Variant.

See Also

Class GxVariant Overview GxVariant Properties GxVariant Methods RemoveListItem SetRefArray