Click here to Skip to main content
13,050,764 members (85,757 online)
Rate this:
Please Sign up or sign in to vote.
Hi Experts! i have question on how can check the value from another textbox to another.

this is my vb form:[^]

my code:[^]

as u can see in the picture. " yEs" is wrong because letter "E" is on capital letter.. i want to make it check as long as the user type the right answer. plss help..
Posted 15-Jan-13 17:47pm
Updated 29-Jan-13 23:53pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


You can keep your two textbox values in two different variables, and then use the following code:

string1 = "Alaska"
string2 = "California"
result = StrComp(string1,string2,vbTextCompare)
' result = 0 if the strings are identical (case-insensitive)
' result = -1 if string1 is lexicographically less than string2
' result = 1 if string1 is lexicographically greater than string2

akosibogart 30-Jan-13 5:57am
sir my question and answer are taken from the which part of my code should i put your code? string1,string2 and result "are not diclare..huhuu" help
Rate this: bad
Please Sign up or sign in to vote.

Solution 1


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100