Difference between revisions of "MTOS()"

From Recital Documentation Wiki
Jump to: navigation, search
 
Line 12: Line 12:
  
 
==See Also==
 
==See Also==
[[HARDCR()]], [[MEMLINES()]], [[MEMOEDIT()]], [[MEMOLINE()]], [[MEMOSAY()]], [[MEMOREAD()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOCLEAR()]], [[SET MEMOFORMAT]], [[SET MEMOWIDTH]], [[SET MEMOWINDOW]], [[SET PRERECORD]], [[SET WP]], [[STRTRAN()]], [[SUBSTR()]], [[TEXTEDIT()]]  
+
[[HARDCR()]], [[MEMLINES()]], [[MEMOEDIT()]], [[MEMOLINE()]], [[MEMOSAY()]], [[MEMOREAD()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOCLEAR]], [[SET MEMOFORMAT]], [[SET MEMOWIDTH]], [[SET MEMOWINDOW]], [[SET PRERECORD]], [[SET WP]], [[STRTRAN()]], [[SUBSTR()]], [[TEXTEDIT()]]  
  
  

Revision as of 12:35, 24 March 2009

Class

Expressions and Type Conversion


Purpose

Function to convert a memo field to character data type


Syntax

MTOS(<memofield>)


See Also

HARDCR(), MEMLINES(), MEMOEDIT(), MEMOLINE(), MEMOSAY(), MEMOREAD(), MEMOTRAN(), MEMOWRITE(), MLCOUNT(), MLINE(), SET MEMOCLEAR, SET MEMOFORMAT, SET MEMOWIDTH, SET MEMOWINDOW, SET PRERECORD, SET WP, STRTRAN(), SUBSTR(), TEXTEDIT()


Description

The MTOS() function converts the memo field <memofield> to a character data type. This function is particularly useful for modifying fields globally. If the specified <memofield> is empty, the MTOS() function returns a null string ("").


Example

set memoformat off
string = mtos(notes)
string = string + chr(10) + "AT" + date() +" " + time()
replace notes with string


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer