- Home
·
- String Manipulation
·
- Checking if the letter you typed in a textbox is the same as the letter from the other textbox.
Checking if the letter you typed in a textbox is the same as the letter from the other textbox.
Checking if the letter you typed in a textbox is the same as the letter from the other textbox.
API Declarations
'''Name them txt1 and txt2
'''The txt1 must have a 'defualt text'
'''If you don't know how to put a 'default text', just put any word on its Text
'''Property.
'''For professional programmers, I'm sorry if i have specified some of the steps, i'm just helping those first timers ok. Comments on this? check me out here: "[email protected]"
Rate Checking if the letter you typed in a textbox is the same as the letter from the other textbox.
(2(2 Vote))
'''Just like this Private sub txt2_Change()
Dim strLetter as String
Dim lenLetter as Integer
lenletter = Len(txt2.Text)
strLetter = Right$(Left(txt1.Text, lenletter), 1)
If strLetter <> Right$(txt2.Text, 1) Then
Beep
Msgbox "Error Typing..."
End IF
Checking if the letter you typed in a textbox is the same as the letter from the other textbox. Comments
No comments yet — be the first to post one!
Post a Comment