Difference between revisions of "RTOS()"

From Recital Documentation Wiki
Jump to: navigation, search
Line 8: Line 8:
  
 
==See Also==
 
==See Also==
[[CAST()]], [[DTOC()]], [[DTOS()]], [[FCOUNT()]], [[FIELD()]], [[RECCOUNT()]], [[STR()]], [[STRZERO()]], [[TYPE()]], [[USE]]
+
[[CAST()]], [[DTOC()]], [[DTOS()]], [[FCOUNT()]], [[FIELD()]], [[FLDLIST()]], [[RECCOUNT()]], [[STR()]], [[STRZERO()]], [[TYPE()]], [[USE]]
  
  

Revision as of 10:32, 3 November 2009

Purpose

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


Syntax

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


See Also

CAST(), DTOC(), DTOS(), FCOUNT(), FIELD(), FLDLIST(), RECCOUNT(), STR(), STRZERO(), 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

Recital, Recital Server