aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1461

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1461  Converting from SmallBasic to Izibasic

08/10/2006 @ 05:35
by trent

Anonymous



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-
  Post an answer  Top

[]   

StartPrevious [ 1 2 ] NextEnd

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

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
--------
11/10/2006 @ 12:09
by Trent

Anonymous

visitor
Hello Aldweb,
I will give that a try.
Thanks for your help.
-trent-
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3
--------
11/10/2006 @ 13:37
by aldweb

Anonymous

visitor
Hello Trent,

Don't hesitate to ask for further help.

Cheers
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 4
--------
12/10/2006 @ 02:55
by trent

Anonymous

visitor
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-
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 5
--------
12/10/2006 @ 23:11
by aldweb

Anonymous

visitor
Hello trent,

Use:
Input "What is your choice ",n


Cheers

@+
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 6
--------
14/10/2006 @ 23:24
by Trent

Anonymous

visitor
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-
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 7
--------
15/10/2006 @ 17:08
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 8
--------
15/10/2006 @ 21:28
by trent

Anonymous

visitor
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-

  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 9
--------
15/10/2006 @ 21:51
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 10
--------
19/10/2006 @ 00:19
by trent

Anonymous

visitor
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-
Write to trent   Post an answer  Top
StartPrevious [ 1 2 ] NextEnd
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^