Members

Members are additional variables associated with parent variables. Member variables are separated from parent variables with dot "."

Text.x = 500
Text.y = 300
Text.value = "Some Text"
If you copy a variable with members, all its members will be copied also:
Text.x = 500
Text.y = 300
Text.value = "Some Text"
Another = Text ' Now Another.x = 500, Another.x = 300 and Another.value = "Some Text"
When you compare a variable with members, member variables are not compared:
Text = "Text"
Text.x = 500
Another = "Text"
Another.x = 100
if Text = another ' this is true
	' ...
end if
If you want to compare a variable with all it's members, you should use function Equal:
Text = "Text"
Text.x = 500
Another = "Text"
Another.x = 100
if Equal (Text, Another) ' this is not true
	' ...
end if
If you try to use a member which is not set, it's value will be null. Example:
Text = null
Text.x = 500
Text.y = 300
Text.value = "Some Text"
OtherVar = Text.unknown_member ' Text.unknown_member and OtherVar are null
if you assign a new value to a member, the parent variable itself is not changing:
Text = null
Text.x = 500 ' Text is still null
if you assign a new value to a variable with members, all it's members will be gone:
Text.x = 500
Text = null ' Text.x is now null

See also: