Difference between revisions of "WebControl.UpdateBrowser"
From Xojo Documentation
(Created page with "N/A") |
|||
Line 1: | Line 1: | ||
− | + | {{MethodBox | |
+ | | name = UpdateBrowser | ||
+ | | owner = [[WebControl]] | ||
+ | | ownertype = class | ||
+ | | scope = public | ||
+ | | platform = web | ||
+ | | newinversion = 2020r1 | ||
+ | }} | ||
+ | {{Description | text=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 [[DatabaseRow|database rows]], updates a [[ProgressBar]] and then forces the updated [[ProgressBar]] to be sent to the browser via '''UpdateBrowser'''. | ||
+ | |||
+ | <rbcode> | ||
+ | ProgressBar1.Maximum = SalesData.RowCount | ||
+ | For Each row As DatabaseRow in SalesData | ||
+ | AnalyzeSales(row) | ||
+ | ProgressBar1.Value = ProgressBar1.Value + 1 | ||
+ | ProgressBar1.UpdateBrowser | ||
+ | Next | ||
+ | </rbcode> |
Latest revision as of 15:46, 25 April 2020
Method
![]() |
This method is only available for Web applications. |
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.