Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying The Data Environment
Message
 
To
09/02/1999 13:07:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00185481
Message ID:
00185697
Views:
20
>I want to do it at design time.

How about using the form files as tables (USE MyForm1.scx) and copying the appropriate memo field(s) from the DataEnvironment record of one, to the other? Or copying the DataEnvironment record from one to the other. Not sure which memo field(s) would be appropriate without looking, but you should be able to tell by looking at the docs on the meta-file structures.

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,
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