>I passed your code onto the developer who is doing this in VB.NET and he said he was using a similar function but still can't get the value returned from my VFP executable.
I do not have any idea presently as to know why this is not working. But, I was wondering, have you ever thought of having that VFP component as a COM and be able to have an object from it in VB.NET? Thus, you would be able to call a method and get the return value.