Hi i was using this function to check if the application was alreay running but now i changed to fox8 it doesn't work anymore?
i searched the internet to see if the foxtools names changed or something like that but i can't find it.
AnyOne???
FUNCTION l1_appinuse
PARAMETERS lWindowTitle
SET LIBRARY TO CFYPATH + "\exe\foxtools.fll" ADDITIVE
lGetwind = regfn("FindWindow","CC","I"
lWclass=0
lHandle=callfn(lGetwind,lWclass,lWindowTitle)
IF lHandle <> 0
ON KEY LABEL ESCAPE *
SET ESCAPE OFF
R=l1_beep("error"
WAIT WINDOW "THIS PROGRAM IS ALREADY RUNNING !" NOWAIT
QUIT
ENDIF
SET LIBRARY TO
RETURN .F.
i searched the internet to see if the foxtools names changed or something like that but i can't find it.
AnyOne???
FUNCTION l1_appinuse
PARAMETERS lWindowTitle
SET LIBRARY TO CFYPATH + "\exe\foxtools.fll" ADDITIVE
lGetwind = regfn("FindWindow","CC","I"
lWclass=0
lHandle=callfn(lGetwind,lWclass,lWindowTitle)
IF lHandle <> 0
ON KEY LABEL ESCAPE *
SET ESCAPE OFF
R=l1_beep("error"
WAIT WINDOW "THIS PROGRAM IS ALREADY RUNNING !" NOWAIT
QUIT
ENDIF
SET LIBRARY TO
RETURN .F.