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

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° 1046  A bug?

le 11/01/2005 @ 21:20
par Peter Thorstenson

Anonyme



Hi!
There is no need for the soap--I decided not to get my hands dirty. I read through the Pascal Starter you toId me about. I was super, but I have really no time to leIarn Pascal and even less to make programs with it. It looks great though. I think I'll play a little with iziBasic instead, so you will probaby hear a lot from me.

I have a problem with "if".
This works:
if M>1 show #2

but this doesn't:
if M>1 then show #2

The program loops with the object flickering. I have to reset. I know it may look silly to place a "then" if it's not needed, but from what I see in the manual it is legal.

BTW MegaStrings is really super. I use it to read in the name of all doc-pdb's padded with spaces to 40 chars and then I use buttons to step through them to select one of them. It's not a dropdown list but it works fine for me. To use a MegaString this way is much better than to use an array--you never have to worry about if it is big enough.

Have a nice time.
/Peter
Ecrire à Peter Thorstenson   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 11/01/2005 @ 21:35
par aldweb

Anonyme

visiteur
Hello Peter,

but from what I see in the manual it is legal
=> Then, I must have not been clear enough in the manual...

Because, the IF statement can be used in two ways:

1. a one line statement, and then no THEN, no ELSE, no ENDIF
The end of the line implies the end of the IF statement.
Example:
IF M>1 SHOW #2 : A=A+1

A is incremented only if M>1.

2. a multiple line statement, with THEN (mandatory), ELSE (facultative), and ENDIF (mandatory).
Example:
IF M>1 THEN
SHOW #2
A=A+1
ENDIF


I am happy that you appreciate the MegaString. It is something I was also badly missing until now.

And I am more than happy to read that you were creative to bypass some of the initial limitations you found in izibasic with very smart tricks.

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° 2
--------
le 12/01/2005 @ 07:52
par Peter Thorstenson

Anonyme

visiteur
That was really silly of me. You are so right, just like the manual. I'm sorry for that.

/Peter
Ecrire à Peter Thorstenson   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 ^