Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying The Data Environment
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00185481
Message ID:
00185698
Views:
21
>Probably you want to copy the whole record, anyway, like:
* The one to get the new DataEnvironment
>USE MyForm1.scx
>* The one with the DataEnvironment you want in both
>USE MyForm2.scx IN 0
>* Get the right record (should be record # 2)
>LOCATE FOR [base]class="dataenvironment"
>FOR FldNum = 1 TO FCOUNT()
>	REPLACE ( FIELD(m.FldNum) ) WITH ("MyForm2." + FIELD(m.FldNum) )
>ENDFOR
>USE IN MyForm2
>USE IN MyForm1
HTH,

P.S. - would a DELETE MyForm1's record then APPEND it from MyForm2 work? Or will Form Designer crash if you open a form and the DataEnvironment record isn't record # 2?

Thanks,
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform