ProgressDialogClose(handle As Integer)
Close previously opened progress dialog window and free up memory resources.
Parameters:
Name |
Type |
Description |
handle |
Integer |
Dialog handle. Identification number of the dialog window, displayed to the user. |
Available in:
WindowMain |
WindowLink |
YES |
NO |
Example XojoScript:
// Define maximum value of a recurring action
Dim total As Integer = 50000
// Define start value
Dim j As Integer = 0
// Show nws dialog window with a progressbar and custom message
Dim hProg As Integer = ProgressDialogShow(total, "Import oder Update von Adressen")
If hProg >= 0 Then
// Loop from start to maximum value and execute the recurring action
While j <= total
// show progress
ProgressDialogSetText(hProg, j)
// add recurring action here
// ...
j = j + 1
WEnd
End If
// Close progress dialog and free up memory
ProgressDialogClose(hProg)