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: Joe Strout <joe@inspiringapps.com>
Date: Thu, 31 Jul 2008 14:21:42 -0600
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: <22529326.1762801217534259298.JavaMail.root@vms229.mailsrvcs.net>
References: <22529326.1762801217534259298.JavaMail.root@vms229.mailsrvcs.net>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
On Jul 31, 2008, at 1:57 PM, Karen wrote:

If you have to parse the comand line into one character arguments you could then use Asc with select case.

If not mabe settingthe string encoding to NIl MIGHT get you a case insesitive comparison. I have not tried it ... but logically it might as no ecoding could (should?) mean RB treats the string as bytes.

No, it won't. String comparison is a text operation, so if you give it a nil-encoded string, RB will shrug and take a wild guess as to what encoding it might actually be. To do a bytewise comparison, you'd have to use StrComp.

Best,
- Joe

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com




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