Qbasicnews.com

Full Version: Size of a GET/PUT array
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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

Anonymous

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]
Thanks man, I'm sticking with integers, but I was able to convert it.