>Hi,
>
>When you create a form programatically, how do you create the data environment as a private data session and add its cursors? The form will be saved with myForm.SaveAs().
>
>Thank you very much.
>
>Alex Sosa
Alex,
Set the Datasession property of the form to 2 - Private. When the form instantiates, the DE will be added automatically. To open the your cursors, add code to the Load event to open anything you want.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao