Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying The Data Environment
Message
 
À
09/02/1999 13:07:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00185481
Message ID:
00185697
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform