>>>Post the piece from .NET that calls this function and exact code of the function. Sometimes there are things overlooked, that the fresh eye can catch in a glimpse.
>>
>>If the call from .NET would not work, my test code that manipulates the TEST.DBF would not work either. I think it is something on the VFP side.
>
>Have you tried to hard code the path in the SP? Have you tried to write and fire the code in your .NET form without the SP?
I have tried to hard code the data path in the SP but still the same problem. And no, I have not tried to fire the code in .NET without SP; this is impossible, the code is VFP code and you can't run it in .NET.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham