Hi everybody! I want to do the following in a basic macro:
oDoc = StarDesktop.loadComponentFromURL( myDoc, "_blank", 0, props() ) '***(1)*** waiting for document load oForm = oDoc.DrawPage.Forms.getByName( "myForm" ) oControl = oForm.getByName( "myControl" ) '***(2)*** waiting for form load oControl.setString( "myString" ) At (1) the macro must wait till the document is loaded if it isn't so. Otherwise i get a exception. At (2) the macro must wait till the form is fully loaded. Otherwise the "myString" is deleted because the control default. So my questions: (1) How can i test that the document ist loaded and the form is available? (2) How can i test that the form is fully loaded? Anybody any suggestions for me? Thanks, Mathias -- ·-· cut here ·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·->8·-· --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
