In this case you'll have to use an OLEParameter and pass that as the argument

Dim param As New OLEParameter
param.ValueArray = v
o.Method( param )

~William


On Nov 17, 2006, at 5:13 AM, Alex Cassol wrote:

ok, it works, but I need do this...

Dim v() As Variant
v = myClass.ValueArray("GetVector")
....
Dim o As OLEObject
o = new OLEObject( "MyVBDll.AnotherClass" )
o.Method(v)

in Visual Basic, "Method" declaration is:
Public Function Method(ByVal myVariant As Variant) As ADODB.Recordset

When I compile app, I got the error "Expected Variant, but got Variant()" on
line "o.Method(v)".



2006/11/14, William Yu <[EMAIL PROTECTED]>:


REALbasic doesn't support arrays as variants, so you'll have to do
this instead:

Dim v() As Variant
v = myClass.ValueArray("GetVector")

~William

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to