Page 1 of 1

How can I make a case sensitive password??

PostPosted: Thu Dec 01, 2011 1:06 pm
by stagmannz
Hi, I am designing a database pub but cannot seem to figure out how to make a case sensitive password system.

I'm using database pro

I would really appreciate some help on this whether it be a code snippet or just a walk through.

Thanks!
:?

PostPosted: Thu Dec 01, 2011 4:46 pm
by Neosoft Support
You can use NeoBook's If action to compare two perform a case sensitive comparison of two strings. Just add an exclamation point "!" to the beginning of the two strings. For example:

Code: Select all
If "![TextEntry1]" "=" "![TextEntry2]"
  SetVar "[Result]" "True"
Else
  SetVar "[Result]" "False"
EndIf


or

Code: Select all
If "![Password]" "=" "!applesauce"
  SetVar "[Result]" "True"
Else
  SetVar "[Result]" "False"
EndIf


Without the exclamation points the comparison is case insensitive. With the exclamation points the comparison is case sensitive.

PostPosted: Thu Dec 01, 2011 5:20 pm
by stagmannz
Just like that too easy!! Thanks heaps