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

Click here to load this message in the networking platform