Qbasicnews.com
Size of a GET/PUT array - 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)
+--- Thread: Size of a GET/PUT array (/thread-9008.html)



Size of a GET/PUT array - wallace - 03-10-2006

I need to know the size of an array if I pass it into a function. Here's what I mean:

Code:
screenres 800,600,32
dim a as integer ptr
a = imagecreate(300,200)
height = hiword(*a)
width = 0 'What is this value, its not loword
imagedestroy a



Re: Size of a GET/PUT array - Anonymous - 03-10-2006

Code:
screenres 800,600,32
dim a as ushort ptr
a = imagecreate(300,200)

width = a[0] shr 3
height = a[1]

imagedestroy a
[/quote]


Size of a GET/PUT array - wallace - 03-11-2006

Thanks man, I'm sticking with integers, but I was able to convert it.