qb64
qb64 copied to clipboard
Array in User Type
Issue by Kobolticus
Saturday Jul 14, 2018 at 16:02 GMT
Originally opened as https://github.com/Galleondragon/qb64/issues/52
Requesting an enhancement for the User Types to have the ability to use an array inside the type Type Userdata Variables(50) AS INTEGER . . . end type
Dim MyType(20) as Userdata
MyType(1).Variables(15)=1024
I really like this idea. This would really help me with a program I have been working on.
You might not find this acceptable, but you can use a _MEM
type variable in your UDT and you can use an array in that. Of course, you'd need to write a function to parse the array stored in memory to get it back. I've got a template of sorts for getting information stored in a _MEM
array here: https://www.qb64.org/forum/index.php?topic=3762.0