English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i tried a graphics statement and tried to make a program in the following way
cls
screen 12
dim aray(1 to 20)
circle (5,5),5
get (1,1)-(10,10),array
put (200,200),array
end

And I encountered a message that is "Illigal function call"
Is the qb gone mad or my codes are incorrect?
Now i want a simple help
just please show me my error and teach me how to use the get and put (graphics) properly
and give the tutorials link

2006-11-22 02:40:59 · 1 answers · asked by Pravesh 3 in Computers & Internet Software

1 answers

There may be two problems IN THIS CODE:
1. You need more memory. Change the 'dim aray(1 to 20)' to 'dim aray(1 to 100)' (that's more than you need, but check it out)
2. change the 'dim aray(1 to 20)' to 'dim array(1 to 20)'
(i don't thing the code given in details is the one you've written, you've probably copied it wrong, but if it is, that's the error you seek)
3. I haven't used QB for a long time, but i'm sure that the circle command takes four parameters , and the correct syntax is that: circle(xposition,yposition),radius,color.
(Now i don't thing you'll get an error if you ommit the fourth parameter, but you won't be able to see anything because the circle will be black coloured)

also note that, unlike other languages, QB never gets mad, so whenever you get an error, it's all YOUR fault. BWAHAHAHA

2006-11-24 02:08:34 · answer #1 · answered by chosen one nick 1 · 1 0

fedest.com, questions and answers