Difference between revisions of "MTOA()"
From Lianjapedia
Yvonne.milne (Talk | contribs) (Created page with "==Purpose== Function to write to an array from a memo field ==Syntax== MTOA(<memofield>) ==See Also== ADEL(), ADIR(), AFIELDS(), AFILL(), AINS(), [[ALEN(...") |
Yvonne.milne (Talk | contribs) |
||
Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
− | MTOA(<memofield>) | + | MTOA(<memofield> [, <expL>]) |
==See Also== | ==See Also== | ||
Line 9: | Line 9: | ||
==Description== | ==Description== | ||
− | The MTOA() function reads a memo field of any size and splits it up into lines where each line is an element of the array which is returned. The ATOM() function can be used to read an array into a memo field. | + | The MTOA() function reads a memo field of any size and splits it up into lines where each line is an element of the array which is returned. If the optional <expL> is .T. (true), lines ending in ';' will be joined with the following line. |
+ | |||
+ | The ATOM() function can be used to read an array into a memo field. | ||
==Example== | ==Example== |
Revision as of 11:29, 30 April 2013
Contents
Purpose
Function to write to an array from a memo field
Syntax
MTOA(<memofield> [, <expL>])
See Also
ADEL(), ADIR(), AFIELDS(), AFILL(), AINS(), ALEN(), APPEND FROM ARRAY, ARRAY(), ASCAN(), ASORT(), ATOM(), COPY TO ARRAY, GATHER, IN_ARRAY(), IS_ARRAY(), LOCAL, MEMOREAD(), MEMLINES(), MEMOLINE(), MEMOTRAN(), MLCOUNT(), MLINE(), PRIVATE, PUBLIC
Description
The MTOA() function reads a memo field of any size and splits it up into lines where each line is an element of the array which is returned. If the optional <expL> is .T. (true), lines ending in ';' will be joined with the following line.
The ATOM() function can be used to read an array into a memo field.
Example
use "C:\Program Files (x86)\Microsoft Visual FoxPro 9\Samples\Classes\samples.vcx" goto 34 myarray = mtoa(methods) list memory create table temp (tempmemo memo) use temp append blank ? atom(myarray,tempmemo)