<< Click to Display Table of Contents >> Navigation: Available Functions > MemoTextFor() |
Syntax
MemoTextFor( <MemoCode> )
Purpose
To retrieve the text of a memo with a specific memo code.
Parameters
<MemoCode> is the code that uniquely identifies the memo.
Returns
The contents of the memo text field for the memo entry which matches <MemoCode>.
Usage
The memo facility (described in section one) is very flexible. In addition to allowing you to enter general comments about each donor, the memo facility provides the easiest way to create user-defined fields. To create a user-defined field with memos, simply enter the name of the new field as the memo code for a new memo, and the value of the new field as the memo text.
When the memo facility is used to create new "fields", the MemoTextFor() function can be used to retrieve the value of these user-defined fields.
Example
The following example is based on three user-defined fields having been defined via the memo facility. They are called "MTASTE", "ORIGIN", and "HOBBY", and are used to store a donor's musical taste, ethnic origin, and favorite hobby, respectively.
CALL |
RESULT |
---|---|
MemoTextFor( "MTASTE" ) |
Alternative Rock |
MemoTextFor( "ORIGIN" ) |
German |
MemoTextFor( "HOBBY" ) |
Stereo Equipment |