LogEntryCollection (object)

From GCAWiki

Jump to: navigation, search

The LogEntryCollection object is primarily found in the Log property of the CampaignInfo object. It contains collections of character campaign log entries.

Contents

Properties & functions

Count

Description: Returns the number of log entries in the collection.

Prototype: Count

Parameters: none

Returns: [Long] The number of log entries in the collection.

Example:

Char.Campaign.Log.Count

Item

Description: Returns a reference to the selected log entry.

Prototype: Item(EntryId)

Parameters:

EntryId 
[Variant] The numeric index (Long) of the log entry to return.

Returns: [Object Reference] A reference to the LogEntry (object) which contains the selected log entry.

Notes: Item is the default property of the LogEntryCollection object, so you may exclude it when accessing the collection.

Example (implicit usage as the default property; common/idiomatic usage):

Char.Campaign.Log(EntryId).Caption

Example (explicit usage):

Char.Campaign.Log.Item(EntryId).Caption

See also

Personal tools