Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can i convert a from to prg with its private DE ?
Message
From
19/12/2000 05:15:53
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00454478
Message ID:
00454957
Views:
29
Will This behave like the Private DE that as designed in from visual designer.
That whenever I change the form the DE is seleted.


>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform