Print: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Line 3: Line 3:
== Description ==
== Description ==


Print writes text to an output window. It can handle up to 20 comma-delimited expressions, separating each with a space. When used without expressions, Print, writes a blank line to the output window.
Print is an easy way text to an output window. It can handle up to 20 comma-delimited expressions, separating each with a space. When used without argument, Print writes a blank line to the output window.


When you execute Print, a window opens over your app with the output. The window can be closed by the user tapping on the x in the top right corner, or by your app executing this statement:
When you execute Print, a window opens over your app with the output. The window can be closed by the user tapping on the x in the top right corner, or by your app executing this statement:
   NSB.Print false
   NSB.Print false


This statement is very useful for debugging. It is an easy way to display the values of variables or other information. It can also be used to give information to the user in a dialog that he can dismiss.


Print output is formatted as Html: any valid Html expression may be used, including images and links.
Print output is formatted as HTML: any valid HTML expression may be used, including images and links.


== Example ==
== Example ==

Revision as of 14:39, 22 February 2013

Print [expressionA[, expressionB[, expressionC[, ...]]]]

Description

Print is an easy way text to an output window. It can handle up to 20 comma-delimited expressions, separating each with a space. When used without argument, Print writes a blank line to the output window.

When you execute Print, a window opens over your app with the output. The window can be closed by the user tapping on the x in the top right corner, or by your app executing this statement:

 NSB.Print false

This statement is very useful for debugging. It is an easy way to display the values of variables or other information. It can also be used to give information to the user in a dialog that he can dismiss.

Print output is formatted as HTML: any valid HTML expression may be used, including images and links.

Example

Rem Print Example
'Print writes text to the output window
Print "Hello World!"
Print
Print "The time is", Now

Output