Difference between revisions of "ECHO"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 1: Line 1:
{{YLM to do}}
+
{{YLM todo}}
 
+
 
==Class==
 
==Class==
 
+
Input/Output
  
  
 
==Purpose==
 
==Purpose==
 
+
Evaluate expression and output result
  
  
 
==Syntax==
 
==Syntax==
 +
ECHO <exp> [,<exp>]
  
 +
[AT <expN>]
  
 +
[FUNCTION <expC1>]
  
==See Also==
+
[PICTURE <expC2>]
  
 +
[STYLE <expC3>]
 +
 +
 +
==See Also==
 +
[[@...GET]], [[@...SAY]], [[ACCEPT]], [[INPUT]], [[SET SPACE]], [[TRANSFORM()]], [[WAIT]]
  
  
 
==Description==
 
==Description==
 +
The ECHO command evaluates the expression and displays the results on the same line, no carriage return/line feed sequence is output unless the <exp> is a character expression and contains the 'C' style escapes as shown below.  If more than one expression is specified and SET SPACE is ON, a single space is output between each expression.  If SET SPACE is OFF, the expressions are output with no space in between.
  
 +
{| class="wikitable"
 +
!Escape||Description
 +
|-
 +
|\t||Tab
 +
|-
 +
|\n||New line
 +
|-
 +
|\r||Carriage return
 +
|-
 +
|}
 +
 +
 +
{| class="wikitable"
 +
!Clause||Description
 +
|-
 +
|AT <expN>||You may optionally specify the column at which the expression will be output with the AT <expN> clause.
 +
|-
 +
|PICTURE <expC1>||The PICTURE clause supports all picture template symbols listed in the @...SAY command.
 +
|-
 +
|FUNCTION <expC2>||The FUNCTION qualifier allows picture functions to be specified.  Normally this can be done with the PICTURE qualifier by preceding the picture with '@'.  If the FUNCTION qualifier is used the '@' is not needed.
 +
|-
 +
|STYLE <expC3>||The STYLE qualifier has been added for compatibility with other Xbase languages.
 +
|-
 +
|}
 +
 +
In Recital Mirage, the following style qualifiers are supported in <expC3>:
 +
 +
 +
{| class="wikitable"
 +
!<expC3>||Style
 +
|-
 +
|B||Bold
 +
|-
 +
|I||Italic
 +
|-
 +
|U||Underline
 +
|-
 +
|-||Strikeout
 +
|-
 +
|}
  
  
Line 26: Line 74:
 
</code>
 
</code>
  
==Products==
 
  
 +
==Products==
 +
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]

Revision as of 16:14, 23 June 2009

Template:YLM todo

Class

Input/Output


Purpose

Evaluate expression and output result


Syntax

ECHO <exp> [,<exp>]

[AT <expN>]

[FUNCTION <expC1>]

[PICTURE <expC2>]

[STYLE <expC3>]


See Also

@...GET, @...SAY, ACCEPT, INPUT, SET SPACE, TRANSFORM(), WAIT


Description

The ECHO command evaluates the expression and displays the results on the same line, no carriage return/line feed sequence is output unless the <exp> is a character expression and contains the 'C' style escapes as shown below. If more than one expression is specified and SET SPACE is ON, a single space is output between each expression. If SET SPACE is OFF, the expressions are output with no space in between.

Escape Description
\t Tab
\n New line
\r Carriage return


Clause Description
AT <expN> You may optionally specify the column at which the expression will be output with the AT <expN> clause.
PICTURE <expC1> The PICTURE clause supports all picture template symbols listed in the @...SAY command.
FUNCTION <expC2> The FUNCTION qualifier allows picture functions to be specified. Normally this can be done with the PICTURE qualifier by preceding the picture with '@'. If the FUNCTION qualifier is used the '@' is not needed.
STYLE <expC3> The STYLE qualifier has been added for compatibility with other Xbase languages.

In Recital Mirage, the following style qualifiers are supported in <expC3>:


<expC3> Style
B Bold
I Italic
U Underline


Example

 


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer