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

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

why?

Thanks.