ATOM()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to write from an array into a memo field

Syntax

ATOM(<array>, <memofield>)

See Also

ADEL(), ADIR(), AFIELDS(), AFILL(), AINS(), ALEN(), APPEND FROM ARRAY, ARRAY(), ASCAN(), ASORT(), COPY TO ARRAY, GATHER, HTML_TOPLAINTEXT(), IN_ARRAY(), IS_ARRAY(), LOCAL, MEMOREAD(), MEMLINES(), MEMOLINE(), MEMOTRAN(), MLCOUNT(), MLINE(), MTOA(), PRIVATE, PUBLIC

Description

The ATOM() function writes the elements of array <array> into the memo field <memofield>. It returns .T. (true) on successful completion, otherwise .F. (false). The MTOA() function can be used to read a memo field into an array.

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)