Using the Member Values of an Object
- Last UpdatedOct 21, 2022
- 1 minute read
The way to set individual members of an object is to use the dot notation as follows:
!NewPlant = object FACTORY()
!NewPlant.Name = ProcessA
!NewPlant.Workers = 451
!NewPlant.Output = 2001
The dot notation is used in a similar way to access the value of a member of an object:
!People = !NewPlant.Workers
This sets the variable !People to 451.