GetEntries

Retrieves an entire call log or dialing entry into an array.

To

Use

Retrieve a call log into an array of CallLogEntry objects

Syntax 1For CallLog objects

Retrieve a dialing directory into an array of DialingDirectoryEntry objects

Syntax 2For DialingDirectory objects


Syntax 1For CallLog objects

Description

Retrieves a call log into an array of CallLogEntry objects.

Applies to

CallLog objects

Syntax

objectname.GetEntries ( entries[ ] )

Argument

Description

objectname

The name of the call log from which you want to retrieve entries

entries[ ]

An array of CallLogEntry objects returned by reference

Returns

Integer. Returns 1 for success, and one of the following negative values if an error occurs:

Examples

Example 1

The following statements call the getEntries function on the l_mycalllog CallLog object to return an array of CallLogEntry objects:

// Instance variable:
// CallLogEntry iCallLogEntries[]
CallLog l_mycalllog
l_mycalllog = CREATE CallLog
l_mycalllog.getEntries(iCallLogEntries)

See also


Syntax 2For DialingDirectory objects

Description

Retrieves a dialing directory into an array of DialingDirectoryEntry objects.

Applies to

DialingDirectory objects

Syntax

objectname.GetEntries ( entries[ ] )

Argument

Description

objectname

The name of the dialing directory from which you want to retrieve entries

entries[ ]

An array of DialingDirectoryEntry objects returned by reference

Returns

Integer. Returns 1 for success, and one of the following negative values if an error occurs:

Examples

Example 2

The following statements call the getEntries function on the l_myphonebook DialingDirectory object to return an array of DialingDirectoryEntry objects:

// Instance variable:
// DialingDirectoryEntry iDialingDirEntries[]
DialingDirectory l_myphonebook
l_myphonebook = CREATE DialingDirectory
l_myphonebook.getEntries(IDialingDirEntries)


l_mydirectoryentry = l_myphonebook.getEntry (l_idx)

See also