|
-
Dec 12th, 2002, 10:41 AM
#1
Thread Starter
Lively Member
If ---- IS Not ""-----"
Hi can anyone help me out with this line? I don't know what I'm doing wrong. It's for vb.net.
If strProductName Is Not "EOF" Then
Thanks
-
Dec 12th, 2002, 10:47 AM
#2
Fanatic Member
er... I havn't done much .NET but I gues you are trying to compare 2 strings????
SO:
If strProductName <> "EOF" Then
would seem a bit more appropriate.
Leather Face is comin...
MCSD
-
Dec 12th, 2002, 10:47 AM
#3
Fanatic Member
Guessing...
Originally posted by steekyjim
Hi can anyone help me out with this line? I don't know what I'm doing wrong. It's for vb.net.
If strProductName Is Not "EOF" Then
Thanks
I dont have VBNET... *BUT*
I dont know if that would help, but what you are doing is comparing 2 string values and if the two string values are not identical, then *something happens*...
I asume that the productname has to be different from the string "EOF"...
I would use the following line in VB6... (OR EVEN QUICK BASIC )
VB Code:
If strProductName <> "EOF" Then
-
Dec 12th, 2002, 10:48 AM
#4
-
Dec 12th, 2002, 10:48 AM
#5
Fanatic Member
Just beet you to it!
Leather Face is comin...
MCSD
-
Dec 12th, 2002, 10:49 AM
#6
Lively Member
You could also use the Equals method on String
If s.Equals("EOF") Then
MessageBox.Show("same")
Else
MessageBox.Show("different")
End If
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
|