Difference between revisions of "SET POINT"

From Recital Documentation Wiki
Jump to: navigation, search
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=SET POINT=
 
 
 
==Class==
 
Numeric Data
 
 
 
 
==Purpose==
 
==Purpose==
 
Change the character used as a decimal point
 
Change the character used as a decimal point
Line 15: Line 8:
  
 
==See Also==
 
==See Also==
SET DECIMALS, SET SEPARATOR
+
[[SET DECIMALS]], [[SET SEPARATOR]]
  
  
 
==Description==
 
==Description==
The SET POINT TO command is used to change the decimal point character from a period (.) to the character specified by <expC>.  The decimal point character is changed for output purposes only.  Regardless of the character specified by the SET POINT TO command, the period is used when a decimal value is stored in a field or a memory variable.  When entering a decimal value into a field, <expC> may be used as the decimal point, but the character will be changed to a period (.) when the record is saved.  If the character expression, <expC>, evaluates to more than one character, the SET POINT TO command only uses the first character in the string.  Used without the optional <expC>, the SET POINT command sets the decimal point back to a period (.).
+
The SET POINT command is used to change the decimal point character from a period (.) to the character specified by <expC>.  The decimal point character is changed for output purposes only.  Regardless of the character specified by the SET POINT command, the period is used when a decimal value is stored in a field or a memory variable.  When entering a decimal value into a field, <expC> may be used as the decimal point, but the character will be changed to a period (.) when the record is saved.  If the character expression, <expC>, evaluates to more than one character, the SET POINT command only uses the first character in the string.  Used without the optional <expC>, the SET POINT command sets the decimal point back to a period (.).
  
  
 
==Example==
 
==Example==
<pre>
+
<code lang="recital">
 
set separator to "."
 
set separator to "."
 
set point to ","
 
set point to ","
display all ord_value, customer</pre>
+
display all ord_value, customer
 +
</code>
  
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 +
[[Category:Documentation]]
 +
[[Category:Commands]]
 +
[[Category:Set_Commands|POINT]]
 +
[[Category:Numeric Data]]
 +
[[Category:Numeric Data Set Commands]]

Latest revision as of 16:57, 23 November 2009

Purpose

Change the character used as a decimal point


Syntax

SET POINT TO [<expC>]


See Also

SET DECIMALS, SET SEPARATOR


Description

The SET POINT command is used to change the decimal point character from a period (.) to the character specified by <expC>. The decimal point character is changed for output purposes only. Regardless of the character specified by the SET POINT command, the period is used when a decimal value is stored in a field or a memory variable. When entering a decimal value into a field, <expC> may be used as the decimal point, but the character will be changed to a period (.) when the record is saved. If the character expression, <expC>, evaluates to more than one character, the SET POINT command only uses the first character in the string. Used without the optional <expC>, the SET POINT command sets the decimal point back to a period (.).


Example

set separator to "."
set point to ","
display all ord_value, customer


Products

Recital Server, Recital