xsharp.eu • String with Len 0
Page 1 of 1

String with Len 0

Posted: Thu Oct 31, 2024 3:01 pm
by Horst
Hello

aMessgeraet [nCnt][02] is empty and sLen = 0
cUsername is not empty


IF aMessgeraet [nCnt][02] = cUsername -> false
IF cUsername = aMessgeraet [nCnt][02] -> true

This shoud be a bug ?
i have xsharp (2.18.0.4)

Horst

Re: String with Len 0

Posted: Thu Oct 31, 2024 9:58 pm
by Chris
Hi Horst,

It's not a bug in the sense that this is how VO works, too, with the partial equality operator when there's a usual involved.

If you want to test for absolute equality, you need to use the == operator. Or you can turn SetExact(TRUE).