OK, here's the really, really odd thing. If I instance the DLL from VB, it works. From VFP, it doesn't. Oh well, switched over to PCOUNT() and it works everywhere then, so I guess I'll just fuggedaboudit.
>>At the risk of boring the crap out of you, here is the complete code...SNIP
>
>Bore the crap outta me?? Hey, I play around with the API a lot. It's hard as hell to bore the crap outta me.< bg >
>
>Nope should work. However, it may be a bug (and thus need reporting). I'll test something similar as an OLE server and let you know. In the meantime, try PCOUNT() and see if that works. You might also try coding something like IF PARAMETERS() = 1 and make the error the else condition and see what happens.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05