Vinians2006 Active Member Licensed User Longtime User Sep 20, 2014 #1 I often use a expression like this: B4X: if IsNumber(edtNumber.text) = false then 'do something end if But why I cant do this: B4X: if not IsNumber(edtNumber.text) then 'do something end if But this give me a sintax error. I tryed to enclose with '()' but still got the error. How can I use "not" ?
I often use a expression like this: B4X: if IsNumber(edtNumber.text) = false then 'do something end if But why I cant do this: B4X: if not IsNumber(edtNumber.text) then 'do something end if But this give me a sintax error. I tryed to enclose with '()' but still got the error. How can I use "not" ?
barx Well-Known Member Licensed User Longtime User Sep 20, 2014 #2 you tried B4X: if not(IsNumber(edtNumber.text)) then end if Upvote 0
Vinians2006 Active Member Licensed User Longtime User Sep 20, 2014 #3 Hmmm, worked... in basic4 android Not is a Function not a operator... weird! Thanks ! Upvote 0