WebControl.UpdateBrowser

From Xojo Documentation

Method


WebControl.UpdateBrowser()

New in 2020r1

Supported for all project types and targets.

Forces the current values of the control to be sent to the browser.

Notes

This method is useful when you are computing values in a loop and wish to update the browser immediately rather than wait until the current method ends.

Sample Code

This code iterates through a RowSet of database rows, updates a ProgressBar and then forces the updated ProgressBar to be sent to the browser via UpdateBrowser.

ProgressBar1.Maximum = SalesData.RowCount
For Each row As DatabaseRow in SalesData
AnalyzeSales(row)
ProgressBar1.Value = ProgressBar1.Value + 1
ProgressBar1.UpdateBrowser
Next