I'm not sure I understand your question. The code I gave you is doing what you said: It's waiting for the dialog box to determine if the script should click the button. Is there something else you'd prefer it to do? |
It is doing what I need.
But, I was hoping that this function didn't need a timeout.
Maybe there is a way to make a SELECT from the database and if the select returned FALSE, it will jump the codeline that press OK on the dialog box.
Lets suppose that my database doesn't have no company named TESTCOMPLETE.
Something like this... don't know how a SELECT will return TRUE or FALSE, but:
result = SELECT * FROM COMPANYNAME
If result <> "" Then
Call Aliases.FPW5_CADCALC.dlgFPWCadastrosEC_lculos.btnOK.ClickButton
End If
Something like that ^^