gettingstarted
[Top] [All Lists]

Re: Comparing chars in strings

To: "Getting Started" <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Comparing chars in strings
From: "Bernard Sunderland" <bernard at sunland92 dot fsnet dot co dot uk>
Date: Mon, 27 Dec 2004 18:17:36 -0000
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <BDF33F2F dot 604E%kim at webguide dot com dot au><3396e7e2041224211146b75ca5 at mail dot gmail dot com><p06200702bdf4b19bc899 at 192 dot 168 dot 0 dot 1><001301c4eb82$aa282510$06c687d9 at dgcsc2m053itsu> <3396e7e204122611437a75b18d at mail dot gmail dot com>
ok, so you need
    diff = (Asc(c1)<>Asc(c2))
but of course this will only work with single chars


----- Original Message ----- From: "Will Leshner" <will dot leshner at gmail dot com>
To: "Getting Started" <gettingstarted at lists dot realsoftware dot com>
Sent: Sunday, December 26, 2004 7:43 PM
Subject: Re: Comparing chars in strings


On Sun, 26 Dec 2004 19:39:48 -0000, Bernard Sunderland
<bernard at sunland92 dot fsnet dot co dot uk> wrote:

Also, I am not yet very familiar with REALbasic but why bother with
that StrComp business? Surely diff = (c1<>c2) is all you need.

REALbasic's operator comparison is case-insenstive, so if you need to
distinguish 'a' from 'A', you have to use StrComp.

--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com
_______________________________________________
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>
_______________________________________________
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>