Conventions Used in this Handbook: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
::KEYWORDS
::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.
Capital letters indicate NSB/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. NSB/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''
::''placeholders''
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: <br />
This Monaco typeface indicates example program code and information that is printed on your NSB/App Studio screen. The following example shows a line from an NSB/App Studio program: <br />
<tt>PRINT "Hello World!"</tt>
<tt>PRINT "Hello World!"</tt>


Line 25: Line 25:
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 />
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'')
LEN(''string'' | ''variable'')
Next: [[The_Elements_of_an_NSB/App_Studio_Program|The Elements of an NSB/App Studio Program]]

Latest revision as of 14:30, 8 November 2012

The following notation conventions are used in this Handbook:

KEYWORDS

Capital letters indicate NSB/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. NSB/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 NSB/App Studio screen. The following example shows a line from an NSB/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)

Next: The Elements of an NSB/App Studio Program