Forum archive - visual basic code

http://www.supermediastore.com/



Forum Archive Home -> Programming -> visual basic code



visual basic code

kudoshinichi posted 2009 Jan 21 07:49
If res = Windows.Forms.DialogResult.Yes Then
Yes = True
Password = InputBox("what is your secret question?", "Enter secret question")
prompt = 2
Password = InputBox("what is your secret answer?", "Enter secret answer")
txtPassword.Select()
nosuccess = 3
End 'Form 1
End If

How to write the code that the secret question the textbox is equal ("What is your favourite food?")?
and the secret answer textbox is equal ("Chicken Rice")



JohnnyMalaria posted 2009 Jan 21 08:30
Create a two-dimensional string array containing question and answer pairs. Search the array for the question to return the expected answer. Compare to the user's answer. Hint, use the LCase or UCase functions to convert questions/answers to all lower/uppercase.



Login/Register to our forum to be able to post here.








Replay Media Catcher lets you record ANY streaming video and save on your computer! More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics