Using the Member Values of an Object
- Last UpdatedFeb 08, 2023
- 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
sets the variable !People to 451.