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 #1034

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1034  Use of case statements

05/01/2005 @ 17:45
by Mike Featherstone

Anonymous



I'm starting to convert some of my chains of 'if' statements into 'case' statements (Thanks!) but I've hit a problem.

The following code segment compiles (and runs):

1 o=1
2 o$­­="Hi"
3 Select Case
4 Case 1
5 Print o$­­
6 End Select

However the following produces a syntax error at line 7:

1 o=1
2 o$­­="Hi"
3 Select Case
4 Case 1
5 Print o$­­
6 End Select
7 Select Case
8 Case 1
9 Print o$­­
A End Select

I thought that the End Select at line 6 closed off the first Select Case allowing me to use a second. Where have I gone wrong?

Mike
www.palm247.com
Write to Mike Featherstone   Post an answer  Top

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
05/01/2005 @ 17:49
by aldweb

Anonymous

visitor
Hello Mike, the syntax should be:
SELECT CASE oneVariable
Otherwise, how do you want iziBasic to know what to select something against?

I badly have no way to check your 2 listings, because I just crashed my Tungsten C's display this morning So, I am left without any device
So, I'll have to install the Palm Emulator or Simulator to keep the support going on here!

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
--------
05/01/2005 @ 17:54
by Mike Featherstone

Anonymous

visitor
I'm sorry, it was a forum typing error. The code samples should be amended to read:

Select Case o

in each case!

(Sorry to hear about the 'C')
Write to Mike Featherstone   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
--------
05/01/2005 @ 20:19
by aldweb

Anonymous

visitor
Mike, indeed...
Good job... you found 1st bug of v4.0

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° 4
--------
06/01/2005 @ 11:17
by Mike Featherstone

Anonymous

visitor
Is there a prize?
Or perhaps a certificate?
Write to Mike Featherstone   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
--------
06/01/2005 @ 12:59
by aldweb

Anonymous

visitor
Mike, you deserve both

Prize:
You will receive a free upgrade to version 4.1 when it is made available. (well, just like all other users...)

Certificate:
I, aldweb, bad developer of iziBasic, certify that Mike Featherstone, talentuous reviewer at Palm247.com, has reported the first bug of the brand new version 4.0 of iziBasic.

Cheers

@+
aldweb
Write to aldweb   Post an answer  Top
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 ^