Logical Op causes probs in IF - End If

Here we can discuss about the problem found
Post Reply
peridot
Posts: 46
Joined: Mon Mar 08, 2021 4:54 am
Has thanked: 7 times
Been thanked: 93 times

Logical Op causes probs in IF - End If

Post by peridot »

Don't know if this has been raised previously but if you place the logical operators in the order shown in the manual if screws up the code. If you reverse the operators it works as expected. The best would be that the order didn't matter I guess.
********************************** wake wifi
Error text:Syntax error ,Error num=1 ,Error line=210
1
Error text:ENDIF without IF ,Error num=26 ,Error line=216
Error text:ENDIF without IF ,Error num=26 ,Error line=222
2022-12-07 15_27_01-Annex32_Help_1.44.chm - [Annex32 WIFI RDS Help Version 1.44.2] - SumatraPDF.png
You do not have the required permissions to view the files attached to this post.
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1269 times
Contact:

Re: Logical Op causes probs in IF - End If

Post by cicciocb »

Hi Peridot,
it is not very clear for me but probably you are talking about the operator => that is not recognised.
In this case, you are right, there is an error in the documentation, the right syntax is >=

I'll correct in the documentation.

edit: just noted that is correctly reported for the strings

p.s.
this is in line with VBA
https://learn.microsoft.com/en-us/offic ... -operators
Post Reply