|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1415 |
Arrays in Graphics Commands |
22/05/2006 @ 23:16 by Garfield
|
Hi
I don't know if this could be a bug as I couldn't find any info in the manual.
Whilst writing my triangles routine, I wanted to use Arrays, but I got a compile error with the following statement:
LINE A(1),A(2) TO V,W
and instead I had to use:
LINE A,B TO V,W
Is this correct? Can't Arrays be used as normal variables? Or is this a bug?
Thanks.
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1 -------- 23/05/2006 @ 02:34 by bh77a
visitor |
Hi Garfield,
If I remember correctly this is normal behavior for iziBasic. Can't remember where it is in the manual though...
Really looking forward to seeing your triangle method...
bh77a |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2 -------- 23/05/2006 @ 15:31 by aldweb
visitor |
Is this correct? Yes, it is.
Can't Arrays be used as normal variables? No, they can't.
Or is this a bug? No, arrays were implemented as something like functions rather than variables in iziBasic. It was quicker and easier to develop them this way, but with the given limitation you highlighted. But, on the other side, isn't it a smart thing that A(1) maps to A, A(2) to B (and so on)?
Cheers, aldweb
|
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|