Re: case sensitivity in strings...
From: Mike B (mrcics2000-news-nomail_at_nomail.yahoo.com)
Date: 11/28/04
- Next message: Mike B: "Re: a little help please"
- Previous message: phenom: "a little help please"
- In reply to: Frances Del Rio: "case sensitivity in strings..."
- Next in thread: Frances Del Rio: "Re: case sensitivity in strings..."
- Reply: Frances Del Rio: "Re: case sensitivity in strings..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 28 Nov 2004 16:40:01 -0600
Frances Del Rio <fdr58@yahoo.com> wrote:
> this seems like somthing so simple, but I can't figure it out... I
> have a little app that consists basically of a string being displayed
> and app tests whether or not user typed in a substring of that
> string... (complete code at www.francesdelrio.com/hamlet.html)
>
> but: I would like this to be non-case-sensitive.. the way it is now
> if user types 'hamlet' instead of 'Hamlet' it returns that that
> substring is not found in the string... how do I say:
> if(Str.indexOf(useript) REGARDLESS OF CASE...... like you can do
> with CompareTo() method... I don't see the possibility of doing this
> w/indexOf in API.. thanks for any help.. Frances
Translate both strings to either upper- or lower-case before you search in
the string.
-- Mike B
- Next message: Mike B: "Re: a little help please"
- Previous message: phenom: "a little help please"
- In reply to: Frances Del Rio: "case sensitivity in strings..."
- Next in thread: Frances Del Rio: "Re: case sensitivity in strings..."
- Reply: Frances Del Rio: "Re: case sensitivity in strings..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|