[Gambas-user] define data-variable as record

Werner wdahn at ...1000...
Sat Apr 25 13:31:35 CEST 2009


juelin wrote:
> hello,
> it is possible to define a record into gambas?
> thats mean a variable with different datatypes
> for example:
> type recorda as record
>    a as intger
>    b as string
>    c[99] as float
> endtype 
> dim variablename as recorda
>
> kind regards
> Jürgen
>
>   
Yes of course.
Example: class Person

Public FirstName as String
LastName as String
BirthDate as Date
Father as Person
Mother as Person

-----

DIM Peter as NEW Person
DIM Village as Object[]

Village.Add(Peter)






More information about the User mailing list