Hola Carlos,
>When i call a .prg from a form which has a private datasession, the program opens another datasession for all the cursors or tables.
>To solve this, i pass the datasession as a parameter and issue a 'set datasession to (parname). Is there another better solution to do this ???
What's wrong with the way you're doing it? In a private datasession the datasessionID can be unpredictable and that sounds like a good way to handle it and the way I've handled it in the past.
Suerte con la problema!
John
------------------------------------------------
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