Assigns a variable for use into a TYPE object structure. |
variable = any legal variable |
Command Description:
If you haven't read up on the TYPE
command, you might want to do so before continuing.
When you define a custom Type, you need to assign some variables to track within in. Using the Field command within the Type .. End Type commands, you set a variable that can be used for EACH object created with the NEW command. |
Example:
; Define the CHAIR Type Type CHAIR Field X Field Y Field HEIGHT End Type ; Create 100 new chairs using FOR ... NEXT using the collection name of ROOM For tempx = 1 to 10 ; Move them all over 1 (like the description example from TYPE command) For room.chair = Each chair |