Hi!
Its sad. The code sample you sent works here with such modification...
What is your ON ERROR setting? Did you tried to catch it by ON ERROR?
>>Try following error method. If you run it in the automation server, the open dialog box should not appear. The idea is to retry command without alias so it behaves normal way for return to command:
>>
>>
>>FUNCTION Error
>>PARAMETER nError,cMethod,nLine
>>if !empty(alias()) and !this.lFirstTry
>> select 0
>> retry
>> this.lFirstTry = .T.
>>endif
>>this.lFirstTry = .F.
>>RETURN TO ShowMessage
>>ENDFUNC
>>
>
>This assumes that the error event is fired. In the current test I am doing, the error event does not even fires. So, I can't test it. It is just unpredictable.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.