>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]
_EDGETENV(hw,@struenv)
_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