ProgressDialogSetText(handle
As Integer, progress As Integer)
Set counter of current activity of progress dialog
window and advance the progressbar accordingly.
Parameters:
Name |
Type |
Description |
handle |
Integer |
Dialog handle. Identification number of the dialog
window, displayed to the user. |
progress |
Integer |
Count of current ongoing activity in progress |
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)