qb64 icon indicating copy to clipboard operation
qb64 copied to clipboard

Array in User Type

Open QB64Bot opened this issue 5 years ago • 2 comments

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

QB64Bot avatar Jan 03 '20 07:01 QB64Bot

I really like this idea. This would really help me with a program I have been working on.

ghost avatar May 04 '20 12:05 ghost

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

ghost avatar Apr 02 '21 02:04 ghost