Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP Windows
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00640163
Message ID:
00640188
Vues:
19
>Anyone know how I can get an object reference to code
>windows open in VFP7?
>
>Thanks

In foxtools, you have some functions to deal with code windows.
   SET LIBRARY TO HOME()+'foxtools.fll' ADDI
   prgname="dummy.prg"
   hw=_WFINDTITL(prgname)
   IF hw < 1
	MESSAGEBOX('Can not find the editor window...',64)
   ELSE
     DIMENSION struenv[25]
     *getting file infos
     _EDGETENV(hw,@struenv)
     *select all and copy to clipboard
     _EDSELECT(hw,0,struenv[2])
     _EDCOPY(hw)
   ENDIF
See VFP Help for more infos...

HTH :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform