Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1549
More than one array
19/06/2007 @ 20:28 by Valentin
Hello
I need to handle a several arrays, and I see that IziBasic only manage one a() or a$(), How can I dimention more arrays? for example %inercia%(23)
Thanks
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Answer n° 1 -------- 19/06/2007 @ 21:56 by aldweb
visitor
Hello Valentin,
The trick is to reserve areas in the A() or A$() arrays for your various virtual arrays and to stack these virtual arrays in A() or A$().
Let me take an example: You need 20 spaces for storing info #1 You need 10 spaces for storing info #2
Then, DIM A(56) ' 26 first spaces are for A-Z ' 20 next spaces are for info #1 ' 10 last spaces are for info #2 I=27 : J=46 ' min and max for info #1 X=47 : Y=56 ' min and max for info #2
Then virtual array for info #1 starts at index 27 and stops at index 46, and virtual array for info #2 starts at index 47 and ends at index 56.
I hope these explanations are clear enough and will help you.
Cheers, aldweb
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497 Answer n° 2 -------- 21/06/2007 @ 01:35 by Valentin
visitor
Hi Aldweb
this is a good solution, I will prove it
Thank you
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky