realbasic-betas.mbox
[Top] [All Lists]

Re: Enhancement of switch case

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: Enhancement of switch case
From: Terry Ford <tmford at shaw dot ca>
Date: Fri, 27 Aug 2004 13:30:29 -0700
Cc: REALbasic Group <realbasic-nug at lists dot realsoftware dot com>
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BD54E444 dot 9996%larsjensen at rcn dot com> <C54DC16C-F851-11D8-B2D5-000A95A9544A at shaw dot ca> <818E6A28-F862-11D8-B23F-000A95880024 at bitjuggler dot com> <8EF6AF43-F864-11D8-B2D5-000A95A9544A at shaw dot ca>

On 27-Aug-04, at 1:06 PM, Norman Palardy wrote:

NO ... its how to specify the range ...

I would like a case like

        >= 5 and < 10

which is not anything in the select case repertoire

Case 5 To 9

Nor is

        > 5 and < 10

Case 6 To 9

or
        >= 5 and <= 10 and <> 8

AFAIK its not allowed. An If in an Else statement or Case Else (new to 6.0) statement is required here. No examples of the Case Else statement yet but maybe it can be used in new ways and in different places.

I'd like to be able to use syntax more like I could with an IF

For now I just use IF as I can put more kinds of tests in it

I've already requested something like this under
http://www.realsoftware.com/feedback/viewreport.php?reportid=ijiykwur

It's really just a request to add to what SELECT CASE supports for determining which case matches

Fair enough. I guess we'll have to wait for further documentation or examples.

Cheers,

Terry Ford

OSX 10.3.5, RB 6.0a4

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>