By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,317 Members | 1,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,317 IT Pros & Developers. It's quick & easy.

Problem with strings

P: n/a
Hello. I am using vb.net.

I have some problem with the data type 'string'.
There is a textbox and a button in my program.
When the button is clicked, the program checks whether the text in the
textbox is "Hello World!" or not. I use the following line of code:

Dim T As String
textbox1.Text() = T
If ((T Is "Hello World!) = True) Then
MsgBox("True")
Else
MsgBox("False")
End If

However, the "True" dialog box never appears, even if I copy "Hello World!"
directly from the source file and paste it to the program.

Could anybody tell me how I can fix this? Thanks in advance.

--
Xero

http://www.chezjeff.net
My personal web portal
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.