Results 1 to 2 of 2

Thread: [RESOLVED] Can we compare enum value with a double value?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2008
    Posts
    470

    Resolved [RESOLVED] Can we compare enum value with a double value?

    Lcode =1000 'is a enum value.
    val(objectxx.getsomething) =1000
    but I get

    (Lcode <> val(objectxx.getsomething) )=false

    why?

    Thanks.

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Can we compare enum value with a double value?

    not too sure what you're on about:

    (1000 <> 1000) = False

    Is 1000 greater than or less than 1000? No, so you get False.

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