<<

Contents

Search

>>

 

PUT_MEMO

 

 

Function

 

 

Syntax:

PUT_MEMO(<Data Item>,<Memo Text>)

 

<Data Item>

= <INDEX FILE FIELD>

<Memo Text>

= <STRING-EXPRESSION>

 

 

Meaning:

Writes the memo text of a Dbase file field.

 

<Data Item> must be an alphanumeric field.

 

PUT_MEMO writes <Memotext> into the file <Index File Name>.dbt and writes the record number from the file <Index File Name>.dbt into <Data Item>.

 

PUT-MEMO returns the result –1 in the case of an error, otherwise 0. In the case of an error the variables OK and OK2 contains the error numbers and ERRORTEXT$ contains the error text.

 

Parameter:

Data Item

<Index File Name>.<Fieldname>

Memo Text

Memotext to be written

 

Sample:

H% = PUTMEMO(REMARK.TEXT$,"Hello World")

IF H% <> 0

THEN ERRORMES = "Error PUT_MEMO: " + ERRORTEXT$ + STR$(OK) + STR$(OK2)

ELSE WRITE REMARK ON ERROR ... END

ENDIF

 

See also:

GET_MEMO$