454
Views
2
Comments
Solved
Using Reactive Web to compare 2 text strings
Question

Hello,

I am creating a Login page and I want to compare 2 separate text strings to see if they are the same before I save it to the database as the password i.e. password, confirm password.

 I would want it case sensitive to ensure that I am also comparing upper and lower case. I read somewhere that it would be best to user the Index and length function together for this type of use case, would this be the best route or is there a better method.

Thanks,

Otis

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi,

To compare to strings on the client case sensitive use Index indeed.

Regards,

Daniel

2025-11-19 06-14-01
Miguel Verdasca
Champion

Hi,

I don't understand why will be better!?

Why you don't use something like this:
Password1 like Password2

Please, check this document information:

Cheers

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP
Solution

Hi,

To compare to strings on the client case sensitive use Index indeed.

Regards,

Daniel

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.