Difference between revisions of ";"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=;=
 
 
 
==Class==
 
Applications
 
 
 
 
==Purpose==
 
==Purpose==
 
Command separator /continuation character
 
Command separator /continuation character
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
[[*]],[[ //]], [[&&]], [[NOTE]]
+
[[&&]], [[*]], [[Double Slash Comment|//]], [[Comment Block|/*...*/]], [[NOTE]]
  
  
Line 26: Line 19:
 
// Used as a command separator
 
// Used as a command separator
 
if deleted()
 
if deleted()
  dialog box "Record deleted."; clear; return
+
    dialog box "Record deleted."; clear; return
 
else
 
else
  dialog box "Record not deleted."
+
    dialog box "Record not deleted."
 
endif
 
endif
 
// Used as a continuation character
 
// Used as a continuation character
 
menu browse accounts->name;
 
menu browse accounts->name;
label "Account Names"
+
  label "Account Names"
 
// Used in a character string
 
// Used in a character string
dialog message "That file does not exist.  Do you wish to;
+
dialog message "That file does not exist.  Do you wish to ;
continue?"
+
  continue?"
 
</code>
 
</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 +
[[Category:Applications]]
 +
[[Category:Applications Commands]]

Latest revision as of 13:28, 10 November 2009

Purpose

Command separator /continuation character


Syntax

<command> [; <command>]


See Also

&&, *, //, /*...*/, NOTE


Description

Multiple commands can be placed on a line by separating each command with a ';' character. The ';' character may also be used to continue a literal character string to the next line. When the ';' character is used in this way, a space is added to the string. If ';' is the last character on a line, it can be used as a continuation character to extend commands over more than one line.


Example

// Used as a command separator
if deleted()
    dialog box "Record deleted."; clear; return
else
    dialog box "Record not deleted."
endif
// Used as a continuation character
menu browse accounts->name;
  label "Account Names"
// Used in a character string
dialog message "That file does not exist.  Do you wish to ;
  continue?"


Products

Recital Server, Recital