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

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.
k7/k7.2/start.txt · Last modified: by 127.0.0.1