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