Bruce,
>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.I've not tried passing arrays to COM objects, I think you need to use the COMARRAY() function in VFP6 to be able to do this.