Re: [Gambas-user] Case statement quesiton

2010-07-19 Thread Benoît Minisini
> Select Case BMI > Case < 25 > > This dosn't seem to work? can't one use less than, greater than, <> etc? > > Regards > > Richard > Look in the documentation: you must write CASE Expr1 TO Expr2 In revision #3046, you can even write CASE TO 25 to do what you want. Regards, -- Benoî

Re: [Gambas-user] Case statement quesiton

2010-07-19 Thread richard terry
On Monday 19 July 2010 16:20:49 Dimitris Anogiatis wrote: > Hey Richard, > > Perhaps this might work for you > > Select Case BMI < 25 > Case True > Print "BMI is Less than 25" > Case False > Print "BMI is MORE than 25" > Case Else > End Select > > or you could also set ra

Re: [Gambas-user] Case statement quesiton

2010-07-18 Thread Dimitris Anogiatis
Hey Richard, Perhaps this might work for you Select Case BMI < 25 Case True Print "BMI is Less than 25" Case False Print "BMI is MORE than 25" Case Else End Select or you could also set ranges Select Case BMI Case 1 to 24 Print "BMI is Less than 25" Case 25

[Gambas-user] Case statement quesiton

2010-07-18 Thread richard terry
Select Case BMI Case < 25 This dosn't seem to work? can't one use less than, greater than, <> etc? Regards Richard -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G