EULA: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Line 10: Line 10:


== Example ==
== Example ==
No code is needed to display the EULA. If you would like to reset the EULA so it appears next time the app is run, use this code:


<pre>
<pre>
'This sample shows how to use the NSB.ShowProgress function
'this function shows you how to reset the EULA setting.
Function Button1_onclick()
'Set a global counter and call updateMessage every quarter second
   localStorage.EULA="false"
Dim count=0
End Function
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
</pre>
</pre>



Revision as of 13:14, 8 January 2013

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

No code is needed to display the EULA. If you would like to reset the EULA so it appears next time the app is run, use this code:

'this function shows you how to reset the EULA setting.
Function Button1_onclick()
  localStorage.EULA="false"
End Function

Output

(depends on use. See nsbShowProgress sample)

Related Items