StandardPays Collection

Manages the maintenance of a collection of Standard Pay objects.
Property Description
Count Long - the number of items in the collection
FetchRS (Server, Connection, Criteria) ADO Recordset - containing a set of standard pay records that mathc the criteria specified.
IsDirty Boolean - true if any item in the collection has been edited but not yet saved.
Item(Index) Object - reference to a specific object in the collection, referenced by Index. If Index is numeric, it is the sequential number of the item in the collection, otherwise it is the alphanumeric key of an item. An error is generated if the item referenced by Index does not exist.

The collection methods provide the means to add and delete objects from the collection, and load a complete collection from the database tables.

Method Description
Add(Object) Adds the object to the collection. The key of the object is generated as the object database Id property concatonated with "K" to make it alphanumeric.
Clear Removes all objects from the collection.
Load (Server, Connection) Loads all items in the database into this collection.
LoadRs (rsStandardPays) Loads all items in the specified recordset into this collection.
Remove(Server, Connection, Index) Deletes the database record for the specified object. An error is generated if an object iis not found for the specified Index