Conventions Used in this Handbook: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
(Created page with "The following notation conventions are used in this Handbook: ::KEYWORDS Capital letters indicate NS Basic/App Studio keywords and other text that must be typed exactly as s...")
 
No edit summary
Line 12: Line 12:
::<tt>Example</tt>
::<tt>Example</tt>


This Monaco typeface indicates example program code and information that is printed on your NS Basic/App Studio screen. The following example shows a line from an NS Basic/App Studio program:
This Monaco typeface indicates example program code and information that is printed on your NS Basic/App Studio screen. The following example shows a line from an NS Basic/App Studio program: <br />
PRINT "Hello World!"
<tt>PRINT "Hello World!"</tt>
[Optional]
 
Brackets indicate that the enclosed items are optional. In the following example, brackets are used to show that entering a second item to display on the screen is optional for the PRINT statement:
::[Optional] <br />
PRINT expression1 [ ,expression2 ]
Brackets indicate that the enclosed items are optional. In the following example, brackets are used to show that entering a second item to display on the screen is optional for the PRINT statement: <br />
Both of these PRINT statements are legal, since PRINT accepts up to 20 expressions:
PRINT ''expression1'' [ ,''expression2'' ] <br />
PRINT "Hello"
Both of these PRINT statements are legal, since PRINT accepts up to 20 expressions: <br />
PRINT "Hello","World"
<tt>PRINT "Hello"</tt> <br />
|
<tt>PRINT "Hello","World"</tt>
The vertical bar indicates that the items are mutually exclusive. In the following example the bar indicates that the LEN function can either be used with a string or a variable name:
 
LEN(string | variable)
::| <br />
The vertical bar indicates that the items are mutually exclusive. In the following example the bar indicates that the LEN function can either be used with a string or a variable name: <br />
LEN(''string'' | ''variable'')

Revision as of 01:51, 1 August 2012

The following notation conventions are used in this Handbook:

KEYWORDS

Capital letters indicate NS Basic/App Studio keywords and other text that must be typed exactly as shown. For the purposes of this manual, uppercase text indicates a required part of the Statement syntax. NS Basic/App Studio is case-insensitive: keywords are accepted with either uppercase letters, lowercase letters, or any mixture of the two. A keyword such as PRINT may be entered into your programs as print, Print, or PRINT.

placeholders

Italic text indicates a placeholder for types of information that you must supply. In the following Statement, expression is italicized to show that the EXECUTE statement requires an expression:
EXECUTE expression

Example

This Monaco typeface indicates example program code and information that is printed on your NS Basic/App Studio screen. The following example shows a line from an NS Basic/App Studio program:
PRINT "Hello World!"

[Optional]

Brackets indicate that the enclosed items are optional. In the following example, brackets are used to show that entering a second item to display on the screen is optional for the PRINT statement:
PRINT expression1 [ ,expression2 ]
Both of these PRINT statements are legal, since PRINT accepts up to 20 expressions:
PRINT "Hello"
PRINT "Hello","World"

|

The vertical bar indicates that the items are mutually exclusive. In the following example the bar indicates that the LEN function can either be used with a string or a variable name:
LEN(string | variable)