[Gambas-user] Arrays in Structures

Demosthenes Koptsis demosthenesk at gmail.com
Sun Jun 17 13:16:04 CEST 2018


Hello,

may i have an example of an Array in a Struct ?

*PUBLIC* *STRUCT* _Identifier_ ... _Field /k/_ [ _Embedded array 
declaration_ ] *AS* [ _Datatype_ ] ... *END STRUCT*


is the next one correct?

Public Struct aioinit
   aio_threads As Integer
   aio_num As Integer
   aio_locks As Integer
   aio_usedba As Integer
   aio_debug As Integer
   aio_numusers As Integer
   aio_reserved[2] As Integer[]
End Struct

when i run it it does not complain for errors.

Thanks Dim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180617/af3f524b/attachment.html>


More information about the User mailing list