Modul
Indhold
Indholdsfortegnelse 🔎︎

# Type-udtryk

Definer ikke-UNO datastrukturer (structs).

En struct er en ordnet samling af datafelter, der kan manipuleres som et enkelt element.

## Syntaks:

    Type StructName

     DataField1 As TypeName1

     DataField2 As TypeName2

     (...)

    End Type

## Eksempel:

    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

Relaterede emner

CreateObject function