0

Hi plz help me with a code that can detect when a pin number is entered in reverse. and alerts the user that he has entered pin number in reverse ..thanx

3
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by suemaina
-1
Dim pinnum As String = "1234"
        Dim pinentered As String = TextBox1.Text
        If pinentered = StrReverse(pinnum) Then
            MessageBox.Show("Please eneter the pin properly")
        ElseIf pinentered = pinnum Then
            MessageBox.Show("Correct pin")
        End If

You need to get the pin u want to compare with into varioable pinnum here i took for example.

0

See if this helps.

Dim x As String = "some message"
        MsgBox(x) '// original String.
        x = StrReverse(x)
        MsgBox(x) '// reversed String.
1

IF it has solved your problem then plz mark the thread as solved.

0

I can't c wea am supposed to mark this thread as solved from ..pliz assist

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.