Type & End Types

BlitzPlus Forums/BlitzPlus Programming/Type & End Types

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Type Man
Field x
Field y
End Type

;an array of men
Dim Men.Man(10)

;can't do this though because you can't use Dim with Field.
Type ArrayOfMen
Field Dim Men.Man(10)
EndType

;can do this though (note square brackets)
Type ArrayOfMen
Field Men.Man[10]
EndType


You can't use Field to limit the size of a string (like in PASCAL) you just have to code it when the string is used.