>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.