User Tools

Site Tools


k7:k7.2:start

7.2.0 Structures - Struct

The syntax of a structure introduced in Gambas 3 (keyword Struct) can be understood as a complex, user-defined data type. Structures or records or tuples, as a structure is called in other languages, allow you to combine several variables or constants of different types under one variable. The individual variables are called fields. You can embed structures in other structures and declare arrays of structures. Arrays of structures can only be used as embedded arrays - static arrays with a fixed size.

Program surface
Figure 7.2.0.1: Program interface for a project with structures

The website uses a temporary session cookie. This technically necessary cookie is deleted when the browser is closed. You can find information on cookies in our privacy policy.
k7/k7.2/start.txt · Last modified: 05.02.2022 (external edit)

Page Tools