Unable to write Not(valeur=")")...

sitajony

Active Member
Licensed User
Hi, I noticed a bug (I think), When I type twice ")" it return an error like:
B4X:
[FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]If Not[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2](valeur=[/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800000][FONT=Courier New][SIZE=2][COLOR=#800000][FONT=Courier New][SIZE=2][COLOR=#800000]")"[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]) [COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT][/SIZE][/FONT]

It return:
attachment.php


And when I type:
B4X:
[FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]If [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]Not[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2](valeur=[/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800000][FONT=Courier New][SIZE=2][COLOR=#800000][FONT=Courier New][SIZE=2][COLOR=#800000]"a"[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]) [/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]Then[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]
It work perfectly... I think it's a bug and not an error on my code...Thanks for your comments!
 

Attachments

  • erreur.jpg
    erreur.jpg
    37.9 KB · Views: 303

mjcoon

Well-Known Member
Licensed User
As a workaround you can use:
If Not(valeur=Chr(41)) Then

The operator for "not equals" isn't mentioned in the Help as far as I can see but no doubt it is "<>" which would seem just understandable as Not(=).

Mike.
 

sitajony

Active Member
Licensed User
The operator for "not equals" isn't mentioned in the Help as far as I can see but no doubt it is "<>" which would seem just understandable as Not(=).

Mike.
I never used, <> for any language... Maybe it's time that I use it...
 

mjcoon

Well-Known Member
Licensed User
It is Mike, I use it all the time - probably from my Psion OPL days :)

Me too (Psion programming), but I also vaguely recollect "=!" (or was it "!="; that reads better) in other languages.

(If I had thought of it I could have taken the name "TunnelDiode", harking back to being a physicist in the 60s. Touché!)

Mike.
 
Top