Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GET graphics
#1
I have a problem with GET. This code works fine:

Code:
SCREEN 12
'Draw something
GET (0,0)-(31,31), HI(0)

But as soon as I use variables it won't work. This code:

Code:
SCREEN 12
'Draw something
x1 = 0
y1 = 0
x2 = 31
y2 = 31
GET (x1,y1)-(x2,y2), HI(0)

causes an "Illegal function call". Am I doing something wrong? It looks fine to me.
If swimming is so good for your figure, how do you explain walruses?
Reply
#2
that is weird yes....if I was to take a guess (since it does seem fine to me, the get line that is, it would be to initialize your variables as integers

x1% = 0
y1% = 0
x2% = 0
y2% = 0

GET (x1%, y1%) - (x2%, y2%), HI(0)

or issue a DEFINT A-Z before the code
hen they say it can't be done, THAT's when they call me ;-).

[Image: kaffee.gif]
[Image: mystikshadows.png]

need hosting: http://www.jc-hosting.net
All about ASCII: http://www.ascii-world.com
Reply
#3
I suppose you dimensioned HI correctly before using GET?
Antoni
Reply
#4
Thanks MystikShadows, I'll try that.

I used the formula in QB's help to find the size of the array. I also tried just setting it to 1000, which should be far more than needed.
If swimming is so good for your figure, how do you explain walruses?
Reply
#5
it may be a arguemtn problem.....may want to stick this at the top of your code:

Code:
DEFINT A-Z

Oz~
Reply
#6
the integer problem is all i can think of, that must be the problmem, i always make my variables integers for some reasno, unless its a text then instead of % you would use $
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)