Basic4GL Strucs

Basic4GL Strucs can contain pieces of data of different data types.

Basic4GL Strucs

Struc gameObject
    name$
    hitPoints
    magicPoints
EndStruc

Dim gameHero As gameObject

gameHero.name$ = "Bob"
gameHero.hitPoints = 100
gameHero.magicPoints = 10

Printr "Name: " + gameHero.name$
Printr "HP  : " + gameHero.hitPoints
Printr "MP  : " + gameHero.magicPoints
page_revision: 2, last_edited: 1209195018|%e %b %Y, %H:%M %Z (%O ago)