>>can i convert a from to prg with its private data environment.
>>Rajesh
>Sure you can.
Highly informative! ;-)
While you can, it is not trivial. Turning a form into a class is easy (it's on the VFP menu). Turning that class into code is fairly trivial. You can use the Class Browser to do that. However, the Class Browser isn't totally reliable so you may have to debug it (as has been illustrated recently on another thread here).
But adding the DE is not trivial. You will have to create a DE class in code and add that in the Load event of your form class. The Init of the DE class will have to add the necessary cursor objects. If the AutoOpenTables property of the DE is set to .T., then he tables will be opened during this process. If not, a manual call to OpenTables will have to be issued. The point being that this is not an automatic process. AFAIK, there isn't a utility that automtically does this but I could be wrong.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao