PDA

View Full Version : "If a contains Letters not in b " does not work as expected



NewsArchive
11-21-2009, 03:34 AM
Hi Friedrich,

please have a look at the attached small demo project. It seems, that
the SB-function "if a contains letetrs not in b" swaps the variables
resulting in "if b contains letters not in a".

http://www.lindersoft.com/projects/Your Project Name-1.zip

Can you confirm this or am I just to stupid to use such a famous product
as SB70?

Thanks in advance.

Markus

NewsArchive
11-21-2009, 03:34 AM
I agree.
The logic seems reversed.

Jane

NewsArchive
11-21-2009, 03:34 AM
For not to break existing scripts, I suggest to simply rename the
condition to

if a "does not contain ALL letters in" b

Markus

NewsArchive
11-21-2009, 03:35 AM
> For not to break existing scripts, I suggest to simply rename the
> condition to
>
> if a "does not contain ALL letters in" b

It worked fine in earlier SB6.x versions, so I think we need a fix for it.
Your script is a perfect example of how to use the function.

Friedrich

NewsArchive
11-21-2009, 03:35 AM
Be free to add it to your examples.

Markus

NewsArchive
11-21-2009, 03:35 AM
>
> Be free to add it to your examples.
>

Thank you!

Friedrich

NewsArchive
11-21-2009, 03:36 AM
> I agree.
> The logic seems reversed.

Fixed in the latest installer runtime source codes now.

BTW, the same problem is in the compiler directive :-(

Thanks for testing!

Friedrich

NewsArchive
11-21-2009, 03:36 AM
Hi Markus,

> please have a look at the attached small demo project. It seems, that
> the SB-function "if a contains letetrs not in b" swaps the variables
> resulting in "if b contains letters not in a".
>
> Can you confirm this or am I just to stupid to use such a famous product
> as SB70?

No, you are completely right. Very good finding! This is definitely a bug
in later SB6.x and SB7 versions.

Thank you for bringing this to my attention.

Friedrich

NewsArchive
11-23-2009, 03:13 AM
An Anomoly, not a bug <g>

--
Dan Scott
Garage Partner Pro
www.garagepartner.com