MTOA()

From Lianjapedia
Jump to: navigation, search

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, HTML_TOPLAINTEXT(), 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)