Difference between revisions of "MTOS()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
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== | ||
− | + | [[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"> | ||
− | |||
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> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Revision as of 05:19, 10 February 2012
Contents
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