NSB.ShowProgress: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
NSB. | NSB.ShowProgress(''message'') | ||
== Description == | |||
NSB. | NSB.ShowProgress displays ''message'' to the user near the bottom middle of the screen. It can be dismissed or updated at any time by the program. The user can also dismiss it. Use it to provide the user with information during execution without interrupting execution. | ||
To dismiss an NSB.showProgress message, call it with no arguments. | To dismiss an NSB.showProgress message, call it with no arguments. | ||
== Example == | |||
<pre> | <pre> | ||
Line 32: | Line 32: | ||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 38: | Line 38: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[msgbox|MSGBOX]] | [[msgbox|MSGBOX]] | ||
[[Category:Language Reference]] |
Revision as of 02:36, 17 August 2012
NSB.ShowProgress(message)
Description
NSB.ShowProgress displays message to the user near the bottom middle of the screen. It can be dismissed or updated at any time by the program. The user can also dismiss it. Use it to provide the user with information during execution without interrupting execution.
To dismiss an NSB.showProgress message, call it with no arguments.
Example
'This sample shows how to use the NSB.ShowProgress function 'Set a global counter and call updateMessage every quarter second Dim count=0 SetInterval(updateMessage,250) Sub updateMessage() count=count+1 If count<20 Then 'Display the progress message followed by dots NSB.ShowProgress("Loading" & String(count,".")) Else 'Clear the progress message and stop calling updateMessage NSB.ShowProgress() ClearInterval(updateMessage) End If End Sub Sub custDone(result) Text2.value=result End Sub
Output
(depends on use. See nsbShowProgress sample)