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

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° 1461  Converting from SmallBasic to Izibasic

le 08/10/2006 @ 05:35
par trent

Anonyme



Hello,
I have been programming in "Basic" for years and just can't figure out how to convert my existing programs into Izibasic.
My programs mostly just write to the screen using "Print" and "input" statements.
I see no way to do this in Izibasic.
I have read the PDF documentation and looked through the sample files but none of them really just write to the screen etc.
Can someone point me in the right direction ?
Thanks.
-trent-
  Poster une réponse  Haut

[]   

DébutPrécédent [ 1 2 ] SuivantFin

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 08/10/2006 @ 18:17
par aldweb

Anonyme

visiteur
Hello trent,

INPUT and PRINT are implemented in iziBasic, as well as the common "basic" statements of this language.

Maybe start by reading the "Console" paragraph, pages #33 and further of the User Manual.

As well, there are a few sample "console" applications in the iziBasic distrib that you could browse to get an idea of how iziBasic manages that.

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 11/10/2006 @ 12:09
par Trent

Anonyme

visiteur
Hello Aldweb,
I will give that a try.
Thanks for your help.
-trent-
  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 11/10/2006 @ 13:37
par aldweb

Anonyme

visiteur
Hello Trent,

Don't hesitate to ask for further help.

Cheers
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 12/10/2006 @ 02:55
par trent

Anonyme

visiteur
Hello Aldweb,
I have gone through the documentation and it does not address the Input issue that I have.
Here is an example of my normal input statement that will not work in Izibasic.
Input "What is your choice ";n

I have tried ;n$ as well and it doesn't work either.
Thanks.
-trent-
  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° 5
--------
le 12/10/2006 @ 23:11
par aldweb

Anonyme

visiteur
Hello trent,

Use:
Input "What is your choice ",n


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° 6
--------
le 14/10/2006 @ 23:24
par Trent

Anonyme

visiteur
Hello Aldweb,
That worked great but now I am having problems with using that value of n in a print statement.
ie;
Input "What is your choice ",n
Print "Your choice was ";n

Well that is they way I use it in Basic etc but it won't compile in Izibasic.
I tried ,n and +n and many other cominations but none work.
I know that I can just say print n and it will work but I want the value of n printed right after my " Your choice was" print statement on the same line.

It seems that all of the Izibasic documentation for the syntax and commands etc in the manuals never give examples. That is why I am having problems converting my old Basic knowledge to the Izibasic code.
None of the example code has these old type basic commands either.
Sorry to keep bothering you.
I am going to go ahead and pay for the registered version because I do believe you have a good program here. I just need to learn the subtle differences in the syntax.
Thanks.
-trent-
  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° 7
--------
le 15/10/2006 @ 17:08
par aldweb

Anonyme

visiteur
Hello Trent,

PRINT "Your choice was ";
PRINT n USING 0


iziBasic's documentation does not provide examples, this is true. But I believed this 100 pages documentation is quite exhaustive and iziBasic is shipped with a good package of sample applications which are offered to be read and understood, to help getting started to iziBasic's syntax specificities.

Furthermore, a few nice people a starting to design an iziBasic wiki here: http://wiki.aldweb.com/.

So, I hope that all these initiatives will help you get the best out of iziBasic

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° 8
--------
le 15/10/2006 @ 21:28
par trent

Anonyme

visiteur
Hello Aldweb,
That doesn't work.
Here is what I have:
INPUT "What is your choice ",n
PRINT "Your choice was ";
PRINT n USING 0
WAIT
END

Now when I try to enter text at the "What is your choice prompt" nothing I enter shows up on the screen. And when I hit enter It comes up with "Your choice was 0.

Thanks.
-trent-

  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° 9
--------
le 15/10/2006 @ 21:51
par aldweb

Anonyme

visiteur
This code works fine, when n is a number.

If you want to work with a text variable, use n$ instead and replace the PRINT n USING 0 (which forces the print of a number in the integer format) by PRINT N$.

Then, this will be:
BEGIN
INPUT "What is your choice ",n$
PRINT "Your choice was ";
PRINT n$
WAIT
END


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° 10
--------
le 19/10/2006 @ 00:19
par trent

Anonyme

visiteur
Aldweb,
Thanyou so much for all of your help.
I am geting along pretty good now.
I am having a problem though with labels.
I get a syntax error if I try to give a label more that 2 letters ie:
Goto done
done:
end

I also am getting syntax error if I try to give more than 1 letter to a variable ie:
Input "enter choice",choice
print choice
or:
Input "enter choice",choice$
print choice$

Thanks in advance.
-trent-
Ecrire à trent   Poster une réponse  Haut
DébutPrécédent [ 1 2 ] SuivantFin
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 ^