Difference between revisions of "MTOS()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to convert a memo field to character data type
 
Function to convert a memo field to character data type
 
  
 
==Syntax==
 
==Syntax==
 
MTOS(<memofield>)
 
MTOS(<memofield>)
 
  
 
==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 STRESCAPE]], [[SET WP]], [[STRTRAN()]], [[SUBSTR()]], [[TEXTEDIT()]]
+
[[MEMLINES()]], [[MEMOLINE()]], [[MEMOREAD()]], [[MEMOTRAN()]], [[MEMOWRITE()]], [[MLCOUNT()]], [[MLINE()]], [[SET MEMOWIDTH]], [[SET STRESCAPE]], [[STRTRAN()]], [[SUBSTR()]]
 
+
  
 
==Description==
 
==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 ("").
 
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==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
set memoformat off
 
 
string = mtos(notes)
 
string = mtos(notes)
 
string = string + chr(10) + "AT" + date() +" " + time()
 
string = string + chr(10) + "AT" + date() +" " + time()
Line 23: Line 18:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 05:19, 10 February 2012

Purpose

Function to convert a memo field to character data type

Syntax

MTOS(<memofield>)

See Also

MEMLINES(), MEMOLINE(), MEMOREAD(), MEMOTRAN(), MEMOWRITE(), MLCOUNT(), MLINE(), SET MEMOWIDTH, SET STRESCAPE, STRTRAN(), SUBSTR()

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

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