In the LibreOffice BASIC window for a dialog that you created, leave the dialog editor by clicking the name tab of the Module that the dialog is assigned to. The name tab is at the bottom of the window.
Enter the following code for a subroutine called Dialog1Show. In this example, the name of the dialog that you created is "Dialog1":
oDialog1 = LoadDialog("Standard", "Dialog1")
"LoadDialog" का इस्तेमाल किए बगैर आप कोड को निम्नानुसार काल कर सकते हैं:
oDialog1 = CreateUnoDialog( DialogLibraries.Standard.Dialog1 )
When you execute this code, "Dialog1" opens. To close the dialog, click the close button (x) on its title bar.