Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters to activeX functions
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00338601
Message ID:
00338806
Views:
15
>Hi all,
>
>I have and ActiveX component where I am required to pass some parameters. The example the vendor provided is in VB (see below). My questions are:
> 1) How do I pass a Long variable type in VFP 5.0?

Pass a numeric value from VFP - the COM interface code within VFP takes care of the conversion.

> 2) If some variable are not required (as in the function below) can I specify the parameter name and value passed or do I have to specify all the parameters with some values?
>

You don't have named parameters, so theymust be passed explicitly in the proper order; you can normally just put sequences of commas omitting optional parameters. Don't forget to pass by reference where you expect to receive a return value via a parameter. If an array is coming back, you'll probably need to use the COMARRAY() function in VFP for formatting the array properly.
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
Reply
Map
View

Click here to load this message in the networking platform