Spécial ! |
Version mobile de l'aldweb Site m.aldweb.com Ni Français, ni Anglais ?Essayez donc l'un de ces drapeaux :
|
|
Météo / Spam / www |
Météo Lyon
aldweb contre le SPAM
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1661 |
Why won't this code work? |
le 29/12/2009 @ 03:25 par mylfedrive
visiteur |
%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
Réponse n° 1 -------- le 29/12/2009 @ 12:31 par aldweb
visiteur |
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
Réponse n° 2 -------- le 29/12/2009 @ 15:34 par mylfedrive
visiteur |
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
Réponse n° 3 -------- le 29/12/2009 @ 18:28 par aldweb
visiteur |
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
Réponse n° 4 -------- le 30/12/2009 @ 00:47 par mylfedrive
visiteur |
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
Réponse n° 5 -------- le 30/12/2009 @ 17:18 par mylifedrive
visiteur |
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
Réponse n° 6 -------- le 31/12/2009 @ 01:43 par aldweb
visiteur |
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
Réponse n° 7 -------- le 31/12/2009 @ 04:42 par mylifedrive
visiteur |
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
Réponse n° 8 -------- le 01/01/2010 @ 16:57 par aldweb
visiteur |
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
Réponse n° 9 -------- le 01/01/2010 @ 19:37 par mylifedrive
visiteur |
Thank you so much! I am sure that you have the best customer support of all Palm programming companies! |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|
|
|
|
|