Ed, thank you for reply.
I have a lot of reports with different data. It is impossible to make them
error free. So errors occurs sometimes and cause my web application to
spot responding since modal error is displayed in screen.
I tried to use
SYS(2335,0)
but this does not work from .EXE .
How to fix this VFP bug ?
>>I use VFP REPORT command to create reports in Web server.
>>However, if there is an error in report, VFP displays
>>modal centered error messagebox having OK and HELP buttons.
>>This box which cannot be captured by ON ERROR.
>>
>>Is it possible to use your code to Click the OK button in this messagebox ?
>
>I doubt it will work in that situation, but you could always try it. The problem comes with knowing the exact text in the Window title (an inexact name can be used, but the results are unpredictable, since the first Window encountered matching as well as another window will be taken as the app window by AppActivate(). In addition, the timing of the delay needs to be predictable; firing AppActivate() and SendKeys() too early may cause the app to eat the keystroke.
Andrus