Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to pass array of doubles to VBA
Message
From
26/02/2002 23:22:10
 
 
To
25/02/2002 08:04:23
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00624443
Message ID:
00625569
Views:
12
>To All,
>
>I am attempting to pass an array of doubles to a VBA method in AutoCAD.
>
>The documentation says the array is :
>
>"Variant (three-element array of doubles); input-only
>The 3D WCS coordinates specifying the line start point."
>

You might try using the code I posted in FAQ 696 for creating a SafeArray as a memory structure and passing a pointer to it, assuming it wants a SafeArray. If not, you might try stringing together a ULONG for the value 3, followed by the three doubles converted to strings (there's conversionn code for creating doubles in memory in my ClsHeap class.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform