aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1164

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1164  SUGGESTION: FOR NEXT functionality

le 13/03/2005 @ 02:28
par Christof

Anonyme



Hi! Well, I bought the full version after a couple days playing with the trial. This is a fantastic development tool and has tremendous potential! It could be what i have been looking for for 4 years.

The FOR NEXT statements are somewhat limited. Am I right in my findings that you cannot use any but the 26 single letter variables in loop counters? and it seems that there is not a way to nest loops.

what I mean is:

for mycounter1 = 1 to 10
do stuff
for mycounter2 = 1 to mycounter1
do more stuff
next mycounter2
do yet more stuff
next mycounter1

I know there are ways to work around it, but would this be a possible addition to izibasic?

also, when working with the console (which I know is mostly for exploring the language) it would be nice to have a locate statement to set the cursor position- or maybe I have missed another command that does that.


thanks for writing this, it's 5.0 E6 times better than any other onboard palm BASIC, and FAST :)





Ecrire à Christof   Poster une réponse  Haut

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 13/03/2005 @ 13:34
par Steven

Anonyme

visiteur
Christof,

Change a couple of things and your code will work. First, you don't use the variable name with NEXT in iziBasic, just NEXT by itself. Secondly, to use other than single letter variable names you have to declare them at the beginning of the program like this:

dim %mycounter1% 'number
dim %mycounter2% 'number
dim %mywords1$­­ 'text

BEGIN
.
.
.
END

Use GPRINT and GOTOXY simulate LOCATE and PRINT AT. They are in pixels but you can figure that out.

Good Luck!
Steven
Ecrire à Steven   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 13/03/2005 @ 13:37
par Steven

Anonyme

visiteur
In my reply previously, I forgot to say that the % and $­­ symbols are part of the variable name and are always required for 'long' variable names.

Ecrire à Steven   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 13/03/2005 @ 18:27
par christof

Anonyme

visiteur
Aha!

I had gone right past the DIM statement in the manual (assuming it referred to dimensioning custom arrays or something)

And I'm still a bit confused about how or if console and graphics modes mix. It's not a really big deal, I just wanted to use console mode for some playing around while figuring out the language.

thanks for the help!
-Christof
Ecrire à christof   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4
--------
le 13/03/2005 @ 18:37
par aldweb

Anonyme

visiteur
And, hopefully, FOR / NEXT can be nested in iziBasic, like any other loop statement!
Otherwise... this compiler would still be in my device only!

Cheers



@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^