Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP Windows
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00640163
Message ID:
00640188
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform