>>>Thanks. It isn't what I'm looking for. What I am really trying to do is detect that a VFP messagebox has opened. I'm trying to move this to vfp9.
>>
>>No chance.
>>All you can do is to redirect the messagebox via #DEFINE, and set some flag while the messagebox is open.
>>It's a pain.
>
>Perhaps rigorously replace one of its parameters with a function which will return the value of the parameter, and also set a flag somewhere...? Still leaves you with no clue as to when was it closed, unless you wrap the whole call in some other procedure and then never use plain messagebox anywhere?
That's the spirit. Just like
#define messagebox my_messagebox
messagebox( ...
procedure my_messagebox
LPARA ...
#undef messagebox
messagebox_up = .t.
lvReturn = messagebox(...
messagebox_up = .f.
return lvReturn
endproc
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]