WORD.FIND , WORD.COUNT disables wlog window

Here we can discuss about the problem found
Post Reply
EasyRider
Posts: 27
Joined: Sat Jun 05, 2021 1:27 am
Has thanked: 7 times
Been thanked: 2 times

WORD.FIND , WORD.COUNT disables wlog window

Post by EasyRider »

On Annex32-S2 CAN USB 1.49.2.
word.count and word.find don't work.
After executing ,stops wlog from printing anything in the wlog window.
Not sure if its a bug?

Regards
User avatar
cicciocb
Site Admin
Posts: 1900
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1271 times
Contact:

Re: WORD.FIND , WORD.COUNT disables wlog window

Post by cicciocb »

Hi,
could you provide a snippet code for testing?

Thanks
EasyRider
Posts: 27
Joined: Sat Jun 05, 2021 1:27 am
Has thanked: 7 times
Been thanked: 2 times

Re: WORD.FIND , WORD.COUNT disables wlog window

Post by EasyRider »

Sorry, my mistake, was using wrong syntax.
Checked a new manual and ALL good now.

Best Regards
EasyRider
Posts: 27
Joined: Sat Jun 05, 2021 1:27 am
Has thanked: 7 times
Been thanked: 2 times

Re: WORD.FIND , WORD.COUNT disables wlog window

Post by EasyRider »

There may still be an issue when finding or counting empty spaces, by not putting a space between "" marks.
try :

a$ = "abc def ghk"
wlog word.find(a$, "") , this creates a problem as per my first post (no space between quotes).
should be:
wlog word.find(a$, " ")
Post Reply