Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can i convert a from to prg with its private DE ?
Message
 
To
19/12/2000 05:15:53
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00454478
Message ID:
00455042
Views:
38
>Will This behave like the Private DE that as designed in from visual designer.
>That whenever I change the form the DE is seleted.
The form selects the "DataSession". It can be the default (I guess whatever session is open /opened when the form loads), or private, which means the tables are only select-able inside the form, The DE object would be created seperate from the form. Most likely, the init event would instance the OpenTables. If the forms datasession is private, and - for example, the command window was selected to browse a table in the DE, the table would have to be opened in the command window before a 'browse'. If the data session of the form was 'default', I think the table could be browsed from the command window (outside the form) without an opentable or use command.

>
>
>>>>can i convert a from to prg with its private data environment.
>>>>Rajesh
>>>Sure you can.
>>
>>Highly informative! ;-)
>It was lame (appologies):
>Public oForm,oDE
>oForm=createobject('Form')
>oDE=createobject('DE')
>oDE.OpenTables
>select freetable
>messagebox(alias())
>oDE.CloseTables
>
>Define class DE as DataEnvironment
>Add object oFREETABLE as cursor
>oFREETABLE.Alias="freetable"
>oFREETABLE.Cursorsource="c:\data\freetable.dbf"
>Enddef
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform