Previous Topic

Next Topic

CreateMemoData - MaxBasic Function

CreateMemoData(Account File: String, Account Code: String): Object

Creates a memo data object for the specified Account File and Account Code. The Memo data object has a sub-object of Memo. The Open and Insert methods of this sub-object will return the corresponding data object for the given Account File and Account Code.

CreateMemoData function syntax has these named arguments:

Parameter

Description

Account File

Required. The file type to create the memo data object for.

Account Code

Required. The value to create the memo data object for. A unique code or ID.

For example:

Dim data as Object

data = CreateMemoData("ARCUST","ASHENG")

Dim memoObj as Object

memoObj = data.memo

Dim newMemo as Object

newMemo = memoObj.Insert("M")

newMemo.Memo.Text = "It always seems impossible until its done"

newMemo.Save

The code above will create a Memo for the AR Customer "ASHENG".

Note: Form and Data objects have AccountFile and AccountCode properties which can be passed to the function. AccountFile GLOBAL and AccountCode GLOBAL will create Global Memo data.

See Also

Objects Functions

Book Contents

Book Index