mike55 Posted August 12, 2004 Posted August 12, 2004 Hi Quick question for all...How do you do not equals to in a if statement, am using: if (A!= 5) then 'do something else 'do something else end if Thats the structure that we used to use with Java, surprised that it doesn't work. Any suggestions. Mike55 Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
AFterlife Posted August 12, 2004 Posted August 12, 2004 Isnt it just <>? C++ also uses the != for a not equal Quote
mike55 Posted August 12, 2004 Author Posted August 12, 2004 Yea that works thanks!! Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
Arch4ngel Posted August 12, 2004 Posted August 12, 2004 If you were in C# it would have worked. You are probably in VB.NET. VB.NET doesn't look like Java as C# does. Continue to learn VB.NET. The more you know the more you get paid :p Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Moderators Robby Posted August 12, 2004 Moderators Posted August 12, 2004 Or you can use ... If Not x = 10 then Quote Visit...Bassic Software
AFterlife Posted August 13, 2004 Posted August 13, 2004 What about : If A <=4 or A>=6 then End If LOL! Quote
Leaders Iceplug Posted August 13, 2004 Leaders Posted August 13, 2004 That only works for integers and is, of course, too big. :) Quote Iceplug, USN One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.