Results 1 to 13 of 13

Thread: == -> .Equals(..) but what is != -> ??? [Resolved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member onerrorgoto's Avatar
    Join Date
    Aug 1999
    Location
    Sweden
    Posts
    330

    Question == -> .Equals(..) but what is != -> ??? [Resolved]

    I want to do som comparisons.

    VB Code:
    1. in c++  :
    2. if(X=="1")  //(you can use it in C# to, I know)
    3. {
    4. //do something
    5. }
    6. c#.
    7. if(x.equals("1")
    8. {
    9. //do something
    10. }

    that is OK, but what about this.
    VB Code:
    1. in c++:
    2. if(X!="1")
    3. {
    4. //do something
    5. }
    6. c#.
    7. if(x.??("1")  //what to use here??
    8. {
    9. //do something
    10. }

    Anyone?
    Last edited by onerrorgoto; Jul 8th, 2003 at 02:53 AM.
    Onerrorgoto

    Dont be to optimistic, the light at the end of the tunnel might be a train

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width