Difference between revisions of "RTOS()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to return all the fields in the current row as a string
 
Function to return all the fields in the current row as a string
 
  
 
==Syntax==
 
==Syntax==
 
RTOS([<workarea>|<alias>])
 
RTOS([<workarea>|<alias>])
 
  
 
==See Also==
 
==See Also==
 
[[CAST()]], [[DTOC()]], [[DTOS()]], [[ETOS()]], [[FCOUNT()]], [[FIELD()]], [[FLDLIST()]], [[LABEL()]], [[RECCOUNT()]], [[STR()]], [[STRZERO()]], [[TOSTRING()]], [[TYPE()]], [[USE]]
 
[[CAST()]], [[DTOC()]], [[DTOS()]], [[ETOS()]], [[FCOUNT()]], [[FIELD()]], [[FLDLIST()]], [[LABEL()]], [[RECCOUNT()]], [[STR()]], [[STRZERO()]], [[TOSTRING()]], [[TYPE()]], [[USE]]
 
  
 
==Description==
 
==Description==
 
The RTOS() function returns all the fields in the current row as a string.  The string will begin with the unique row identifier and then the deleted flag, followed by the data in the record.  An optional workarea number or alias name can be specified, otherwise the current workarea will be used.
 
The RTOS() function returns all the fields in the current row as a string.  The string will begin with the unique row identifier and then the deleted flag, followed by the data in the record.  An optional workarea number or alias name can be specified, otherwise the current workarea will be used.
 
  
 
==Example==
 
==Example==
Line 26: Line 22:
 
next
 
next
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==
Recital, Recital Server
+
Lianja, Lianja Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Expressions and Type Conversion]]
+
[[Category:Formatting Functions]]
[[Category:Expressions and Type Conversion Functions]]
+
[[Category:Cursor Functions]]

Latest revision as of 08:25, 4 February 2013

Purpose

Function to return all the fields in the current row as a string

Syntax

RTOS([<workarea>|<alias>])

See Also

CAST(), DTOC(), DTOS(), ETOS(), FCOUNT(), FIELD(), FLDLIST(), LABEL(), RECCOUNT(), STR(), STRZERO(), TOSTRING(), TYPE(), USE

Description

The RTOS() function returns all the fields in the current row as a string. The string will begin with the unique row identifier and then the deleted flag, followed by the data in the record. An optional workarea number or alias name can be specified, otherwise the current workarea will be used.

Example

use backup in 0
use accounts in 0
nrecs=reccount()
for i = 1 to nrecs
    if rtos(accounts) != rtos(backup)
       debug("record "+recno()+" doesn't match")
    endif
next

Products

Lianja, Lianja Server