Hi,
How about:
If Ucase(session("name")) = Ucase(GetPosts("name"))
Using Ucase or alternatively Lcase to convert both strings to all
uppercase/lowercase to make the comparison.
-----Original Message-----
From: rickstahr [mailto:[EMAIL PROTECTED]
Sent: Friday, 29 October 2004 3:59 p.m.
To: [EMAIL PROTECTED]
Subject: [ASP] Ignore CaSe?
Hi
I need to compare a login name against a database value and show a
message if it's the same. Problem is, if the database has me as Rick
and my session has me as rick it doesn't equate, due to the
difference in case.
Is there a way to ignore the case? e.g.
If session("name") = GetPosts("name") Then
yada yada yada
End If
should become:
If (IgnoreCase(session("name")) = (IgnoreCase(GetPosts("name")) Then
yada yada yada
End If
I'm totally making that second one up - but I assume there's a real
solution?
Thnaks in advance!
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/