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°1397

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° 1397  WHILE Y>X AND S

le 30/04/2006 @ 06:58
par bh77a

Anonyme



Hi,

This is probably a foolish question on my behalf, but trying to enter into a WHILE/WEND loop with the WHILE set up as:

WHILE Y>X AND S<=5

results in a syntax error at compilation. Is this not possible or should it be nested? See below:

WHILE Y>X
WHILE S<=5

Thanks for any clarification that one could provide.

bh77a
Ecrire à bh77a   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 30/04/2006 @ 18:09
par aldweb

Anonyme

visiteur
Hi bh77a,

Here is how to proceed:

A=(Y>X) AND (S<=5)
WHILE A=TRUE
...
A=(Y>X) AND (S<=5)
WEND


This is because the math parser is not fully implemented (yet?) except for real variables affectations, i.e. A=something.
In all other statements, you need to have only one active boolean test (i.e. [=,<=,>=,<>,<,>]. This should be written somewhere in the faq, apart from being clearly stated in the WHILE statement's syntax.

Cheers,
aldweb


@+
aldweb
Ecrire à aldweb   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 30/04/2006 @ 23:15
par bh77a

Anonyme

visiteur
Hi Aldweb,

Your explanation makes good sense.

I also solved it by:

WHILE S<=5
IF Y>X
...
ENDIF
WEND

Regards,
bh77a
Ecrire à bh77a   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 01/05/2006 @ 20:37
par aldweb

Anonyme

visiteur
Hi,

This will also work of course. You just have to be careful that the S value can be set to a new condition value not only in the IF Y>X / ENDIF loop, otherwise you shall never exit the WHILE loop!

Cheers

@+
aldweb
Ecrire à aldweb   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 02/05/2006 @ 04:23
par bh77a

Anonyme

visiteur
Hi,

Very true. Fortunately this doesn't occur in my test loop.

Regards,
bh77a
Ecrire à bh77a   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 ^