MTOA()

From Lianjapedia
Revision as of 08:49, 3 January 2013 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to write to an array from a memo field

Syntax

MTOA(<memofield>)

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. 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)