Age Property

See Also Applies To Example Model

Sets or returns an object's age. Read/write Long.

Remarks

The Mature method can be used to increment the Age property.

Example

The following example increments each Bot object's age using the Mature method. It then checks the age of each Bot using the Age method. If the age of the Bot is greater than 82, the Bot dies of old age.

Bots.Mature
For Each Bot in Bots
     If Bot.Age > 82 Then Bot.Die
Next Bot