Instrucción Type

Define estructuras de datos no UNO («structs»).

Una «struct» es una colección ordenada de campos de datos que puede manipularse como un único elemento.

Sintaxis:


         Type StructName
          DataField1 As TypeName1
          DataField2 As TypeName2
          (...)
         End Type
     

Ejemplo:


         REM  *****  BASIC  *****
         Type customer
          Name1 As String
          City As String
         End Type
         Sub setCustomer
          Dim oCustomer as new customer
          oCustomer.Name1 = "The Document Foundation"
          oCustomer.City = "Berlin"
         End Sub
     

¡Necesitamos su ayuda!