Weather / Spam / www |
Lyon Weather
aldweb against spam
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1661 |
Why won't this code work? |
29/12/2009 @ 03:25 by mylfedrive
visitor |
%why% = 1 WHILE %why% < 121 A(%why%)=1 %why% = %why%+ 1 WEND
Seems to infinite loop in 7.0 on a palm lifedrive. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1 -------- 29/12/2009 @ 12:31 by aldweb
visitor |
Hello mylfedrive,
Did you DIM A(121) on top of your source code?
DIM A(121) 'first DIM %why% 'second BEGIN %why% = 1 WHILE %why% < 121 A(%why%)=1 %why% = %why%+ 1 WEND END
Cheers,
aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2 -------- 29/12/2009 @ 15:34 by mylfedrive
visitor |
Yes, It has been dimensioned, I did DIM A(200)
I also tried an equivalent for...next and repeat...until loop, and they both had errors first. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3 -------- 29/12/2009 @ 18:28 by aldweb
visitor |
Then, I don't get where the issue is because the above source code works like a charm...
Cheers, aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4 -------- 30/12/2009 @ 00:47 by mylfedrive
visitor |
I put a messagebox before this code, ad after. The first one shows up, the second one doesn't any I have to soft reset! |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5 -------- 30/12/2009 @ 17:18 by mylifedrive
visitor |
Should I email you my full code so you can look at it? I am sure there must be a bug in izibasic! |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 6 -------- 31/12/2009 @ 01:43 by aldweb
visitor |
Sure, please do so. I will give a look to it.
Cheers, aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 7 -------- 31/12/2009 @ 04:42 by mylifedrive
visitor |
Thank you. My current code is using the FOR...NEXT loop. I have put message boxes inside the loop, and it seems to loop until it gets to 3 loops, then it resets and starts from one again, and thus never finishes. Thanks for looking at this for me. Feel free to change any methods to help me get this working. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 8 -------- 01/01/2010 @ 16:57 by aldweb
visitor |
After looking at your code, it is important as I slightly highlighted it earlier to DIM the variables in the right order: DIM A(121) 'first DIM %why% 'second
And not: DIM %why% DIM A(121)
Please refer to Appendix #9: iziBasic Memory structure of the user manual which gives explanations about the variables stacking, because of the special use that iziBasic can do of the A() array.
Cheers, aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 9 -------- 01/01/2010 @ 19:37 by mylifedrive
visitor |
Thank you so much! I am sure that you have the best customer support of all Palm programming companies! |
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|
|
|
|
|