Structure questions
Posted: 07 February 2008, 7:09 AM
Is it legit to do this:
Structure MyStruct
var1 as Single
var2 as Single
End Structure
Dim MyArray(1 to 3) of MyStruct
In other words can I have an array of structures?
Also, am I correct that I can do this? SysLib seems to say so:
"A variable that is a structure may be assigned to another variable that is the same type of structure using the standard assignment operator."
Dim A as MyStruct
Dim B as MyStruct
A.var1 = 0.0
A.var2 = 1.0
B = A '<==== CAN I DO THIS
Any enlightenment will be appreciated
Vic
Structure MyStruct
var1 as Single
var2 as Single
End Structure
Dim MyArray(1 to 3) of MyStruct
In other words can I have an array of structures?
Also, am I correct that I can do this? SysLib seems to say so:
"A variable that is a structure may be assigned to another variable that is the same type of structure using the standard assignment operator."
Dim A as MyStruct
Dim B as MyStruct
A.var1 = 0.0
A.var2 = 1.0
B = A '<==== CAN I DO THIS
Any enlightenment will be appreciated
Vic