hey, im just wondering if you guys knows how to make a text comparison case sensitive...my code looks like this:
rec.open "SELECT * FROM userlist WHERE password='" & txtpw.text & "'"
im thinking using the byte (or something similar) function (" byte(txtpw.text) ") but i dunno if it's safe and accurate..
thanks for anyone who can help me out.
[VB] Making text comparison case sensitive
Started by
upstream
, Feb 06 2007 07:12 AM
1 reply to this topic
#1
Posted 06 February 2007 - 07:12 AM
#2
Posted 16 April 2007 - 06:39 AM
in visual basic things are already case sensitive. So if you put
if you ever didn't want it to be case sensitive then make your code similar to the following.
~JD~
if txtpw.text = "password" then 'do whatever else 'do what ever end if
if you ever didn't want it to be case sensitive then make your code similar to the following.
if lcase(txtpw.text) = "password" then 'do whatever else 'do what ever end if
~JD~
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users