David,
Thanks for the quick response.
>Try dropping the array on the VFP side, just use simple memvars. the [in] and
>[out] are just indicators of whether a parameter is for input (read access) or
>output (write access, which must be passed by reference)
Even if this worked, sometimes I need to pass arrays into the function. For instance, inColNames[1] = "CA", inColNames[2] = "LOS ANGELES" to do a lookup on LOS ANGELES county, CA.
Same thing with the return value -- if I only specify a state, then an array of county information is going to be returned.
>OutVals = space(255) && usually have to preallocate this buffer to something
>bigger than needed.
Thanks, that's something I should have remembered. ;-) Doesn't seem to fix my problem, but thanks for your help!
Also, the fifth parameter is actually the return value in VB or VFP, so only four parameters are expected. I tried that too, and got a "too many parameters" error. ;-)
Bruce
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement