GetEntry

Retrieves an entry in a call log or a dialing directory.

To

Use

Retrieve an entry in a call log

Syntax 1For a CallLog object

Retrieve an entry in a dialing directory

Syntax 2For a DialingDirectory object


Syntax 1For a CallLog object

Description

Retrieves a call log entry based on an index value.

Applies to

CallLog objects

Syntax

objectname.GetEntry ( index )

Argument

Description

objectname

The name of the call log from which you want to retrieve an entry.

index

An integer that specifies the entry you want to retrieve. Index values are typically in reverse chronological order, such that a value of “1” corresponds to the latest entry.

Returns

A CallLogEntry structure. GetEntry returns a null object when the argument does not correspond to an actual index value.

Examples

Example 1

These statements get the latest entry in the l_myCallLog call log:

Integer l_idx = 1

CallLogEntry l_mylogentry

l_mylogentry = l_mycalllog.getEntry (l_idx)

See also


Syntax 2For a DialingDirectory object

Description

Retrieves a dialing directory entry based on an index value and location.

Applies to

DialingDirectory objects

Syntax

objectname.GetEntry ( index )

Argument

Description

objectname

The name of the dialing directory from which you want to retrieve an entry.

index

An integer that specifies the entry you want to retrieve.

Returns

A DialingDirectoryEntry structure. GetEntry returns a null object when the argument does not correspond to an actual index value.

Examples

Example 2

The following statements call the getEntry function on the l_myphonebook DialingDirectory object to return a DialingDirectoryEntry object:

Integer l_idx = 1

DialingDirectoryEntry l_mydirectoryentry

l_mydirectoryentry = l_myphonebook.getEntry (l_idx)

See also