|
-
Aug 1st, 2007, 06:47 AM
#1
Thread Starter
Addicted Member
[RESOLVED] [2005] How do I write a code for not equals to?
Eg. I have a code
Code:
Label1.text (not equals to) Label2.text
How am I suppose to code the not equals to?
I am such a VB.NET 2005 idiot. Sorry If I don't even know basic stuff. 
-
Aug 1st, 2007, 06:48 AM
#2
Re: [2005] How do I write a code for not equals to?
What language are you using?
-
Aug 1st, 2007, 06:50 AM
#3
Thread Starter
Addicted Member
Re: [2005] How do I write a code for not equals to?
I am such a VB.NET 2005 idiot. Sorry If I don't even know basic stuff. 
-
Aug 1st, 2007, 06:52 AM
#4
Re: [2005] How do I write a code for not equals to?
If (Label1.Text <> Label2.Text)
or
If (Not Label1.Text = Label2.Text)
-
Aug 1st, 2007, 10:08 AM
#5
Re: [2005] How do I write a code for not equals to?
Code:
If Not Equals(Label1.Text, Label2.Text) Then
Another fun way of doing it.
-
Aug 1st, 2007, 12:13 PM
#6
Re: [2005] How do I write a code for not equals to?
vb Code:
Public Function AreTheyEqual(String1 As String, String2 As String) As Boolean
If String1 <> String2 Then
Return False
Else
Return True
End If
End Function
AreTheyEqual(Label1.Text, Label2.Text)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|