realbasic-nug
[Top] [All Lists]

Re: Select Case and case-sensitive strings?

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Select Case and case-sensitive strings?
From: Tim Jones <tjmac@tolisgroup.com>
Date: Thu, 31 Jul 2008 12:49:18 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <28D9E2F3-D5A7-4856-A5BC-B219CEF1586E@inspiringapps.com>
References: <33EF913F-876B-4E1F-A190-AC27DF8EC258@tolisgroup.com> <28D9E2F3-D5A7-4856-A5BC-B219CEF1586E@inspiringapps.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
On Jul 31, 2008, at 12:33 PM, Joe Strout wrote:

There's nothing "nested" about it, nor would it be any huger than your Select Case block. In fact it'd be slightly shorter, in terms of the number of lines (though you would have two extra tokens per case line).

Done - and it turns out to be one line LESS since you can toss the opening Select Case. Each 'Case "-s"' become 'ElseIf StrComp(args(x + 1), "-s", 1) = 0 Then'.

Tim


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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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