This is what i want to use and due that this is a method macro's for workaround are not suitable.
In fact the variant will be populated with a safearray obtained via Excel.
I get this error:
PowerBASIC for Windows
PB/Win Version 9.01
Copyright (c) 1996-2009 PowerBasic Inc.
Venice, Florida USA
All Rights Reserved
(311:041): Scalar variable expected
Code:
Method ToArray( ByRef vArray() As Variant ) As Long Redim vArray( 0 to 100 ) vArray( 0 ) = 123 End Method
I get this error:
PowerBASIC for Windows
PB/Win Version 9.01
Copyright (c) 1996-2009 PowerBasic Inc.
Venice, Florida USA
All Rights Reserved
(311:041): Scalar variable expected
Comment