dc_isapprunning()
Posted: Tue Dec 29, 2015 11:59 am
Some issues with dc_isapprunning()
the documentation shows an example:
IF DC_IsAppRunning('XbpDialog',,'MYAPP.EXE',.t.)
RETURN .f.
ENDIF
but, this will not run... the second parameter (title) must be used.
if the title doesn't match EXACTLY, it never gets to this code further down in the function:
if !Upper( cTitle ) $ Upper( cWinTitle ) .and. !Upper( cFile ) $ Upper( cWinFile )
Return( .f. )
End
This function now requires an exact match in the title..
a partial match in the title, or using the filename would be a major improvement...
We were hoping to display the appsize in the titlebar after the app name..
the documentation shows an example:
IF DC_IsAppRunning('XbpDialog',,'MYAPP.EXE',.t.)
RETURN .f.
ENDIF
but, this will not run... the second parameter (title) must be used.
if the title doesn't match EXACTLY, it never gets to this code further down in the function:
if !Upper( cTitle ) $ Upper( cWinTitle ) .and. !Upper( cFile ) $ Upper( cWinFile )
Return( .f. )
End
This function now requires an exact match in the title..
a partial match in the title, or using the filename would be a major improvement...
We were hoping to display the appsize in the titlebar after the app name..