field.bmx 158 B

12345678910111213
  1. Rem
  2. Field is used to declare the member variable(s) of a type.
  3. End Rem
  4. Type TVector
  5. Field x,y,z
  6. End Type
  7. Local a:TVector=new TVector
  8. a.x=10
  9. a.y=20
  10. a.z=30