12-28-2005, 10:22 AM
Is this not possible? I've had a few small projects that tried and failed at this. What's goin' on?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
Arrays in Types
|
12-28-2005, 10:22 AM
Is this not possible? I've had a few small projects that tried and failed at this. What's goin' on?
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
12-28-2005, 10:32 AM
I recently posted an example in freebasic.net
here is what I am guessing you want to do Code: Type mytype Code: Type mytype
url=http://www.smithcosoft.com]SmithcoSoft Creations[/url]
"If you make it idiot proof, someone will make a better idiot" - Murphy's Law
12-28-2005, 05:39 PM
Im not sure what you mean but it does work making an array inside a type.
Code: Type mytype_t
It's the difference between asking someone how much flour goes into pancakes, and handing them a sorry mix of oozing green goo and asking them to fix it." - Deleter
-Founder & President of the No More Religion Threads movement-
12-28-2005, 08:55 PM
yes, dynamic arrays are what everyone wants
you use pointers like so Code: Type business always clean up when you make a mess
12-28-2005, 09:57 PM
Quote:which you cannot do, Um..you can? TBK's example works for me on 0.15.
12-28-2005, 10:00 PM
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.
quote="Deleter"]judging gameplay, you can adaquately compare quake 4 with pong[/quote]
12-28-2005, 10:10 PM
It appears to work for me. :wink:
12-28-2005, 10:10 PM
This works fine for me in 0.15
Code: Type SomeType
12-29-2005, 02:42 AM
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...
url=http://www.smithcosoft.com]SmithcoSoft Creations[/url]
"If you make it idiot proof, someone will make a better idiot" - Murphy's Law |
« Next Oldest | Next Newest »
|