How can I make a case sensitive password??

Questions or information that don't quite fit anywhere else

Moderator: Neosoft Support

Locked
stagmannz
Posts: 15
Joined: Tue Feb 22, 2011 11:34 pm

How can I make a case sensitive password??

Post 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!
:?
Neosoft Support
NeoSoft Team
Posts: 5628
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA
Contact:

Post 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.
NeoSoft Support
stagmannz
Posts: 15
Joined: Tue Feb 22, 2011 11:34 pm

Post by stagmannz »

Just like that too easy!! Thanks heaps
Locked