Arrays in Types - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html) +--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html) +---- Forum: FB Projects (http://qbasicnews.com/newforum/forum-16.html) +---- Thread: Arrays in Types (/thread-8653.html) |
Arrays in Types - Torahteen - 12-28-2005 Is this not possible? I've had a few small projects that tried and failed at this. What's goin' on? Arrays in Types - SSC - 12-28-2005 I recently posted an example in freebasic.net here is what I am guessing you want to do Code: Type mytype Code: Type mytype Arrays in Types - TheBlueKeyboard - 12-28-2005 Im not sure what you mean but it does work making an array inside a type. Code: Type mytype_t Arrays in Types - Anonymous - 12-28-2005 yes, dynamic arrays are what everyone wants you use pointers like so Code: Type business always clean up when you make a mess Arrays in Types - Kylemc - 12-28-2005 Quote:which you cannot do, Um..you can? TBK's example works for me on 0.15. Arrays in Types - Torahteen - 12-28-2005 Ok, in my program, I have a type that has an array inside it. Code: Type SomeType Then I have an array of SomeTypes. Code: Dim Shared SomeArray(1 To 10) As SomeType But it doesn't appear to work. Arrays in Types - speedlemon - 12-28-2005 It appears to work for me. :wink: Arrays in Types - yetifoot - 12-28-2005 This works fine for me in 0.15 Code: Type SomeType Arrays in Types - SSC - 12-29-2005 hmmm, well I know you couldn't do it in QB, but I am too lazy to bust out my laptop to test it right now so I guess i'll take your word for it... |