Forum Discussion

stega's avatar
11 years ago

Wait object

Hi All, I have a problem, with waiting objects. I want to test an export function. When i click to export button it opens ms excel and when the export is complete it swithches back to the main a...
  • mugheessiddiqui's avatar
    11 years ago
    Hi Gabor

    You have forget to mention timeout in your statement.

    myapp.WaitVCLObject("TMessageForm", 10000);


    The number of milliseconds to wait until the specified object becomes available. If Timeout is 0, the method returns immediately. If Timeout is -1, the wait time is infinite...