Ancient Lady, ok, initialization isn't that important, I could do it like this:
type udt
amnt
dim asdf[99]
endtype
tmp as udt
tmp.amnt=34
`NOW ONLY USE THE ARRAY UP TO 34, even though It's been inited to 99, just treat it as if it's only 34
for k = 1 to tmp.amnt
tmp.asdf[k]=k
next
but Arrays in UDT's are fairly essential for much of what I do (I do workaround it, but my code would be sooo much cleaner if I could)
also Functions in UDT's would be nice. You can do this in FreeBasic.
type foo
abc as string
declare function prin()
endtype
asd as foo
dsa as foo
asd.abc="Hello World!"
dsa.abc="GoodbyeWorld:("
asd.prin()` prints Hello World!
dsa.prin()` prints GoodbyeWorld:)
sync()
sleep(1000)
end
function foo.prin()
print(foo.abc)
endfunction