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
String with Len 0
Re: String with Len 0
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).
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).
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
Re: String with Len 0
Hi Chris
I know when i compare "Horst " = "Horst" or "Horst" = "Horst " then is the result different, but a empty string ? Thats weird for me.
Horst
I know when i compare "Horst " = "Horst" or "Horst" = "Horst " then is the result different, but a empty string ? Thats weird for me.
Horst
Re: String with Len 0
Hi Horst,
Well, VO is extremely weird at times
I agree, it does not make much sense, but we had to implement it the same way as in VO, otherwise it would certainly break existing (ported to X#) code.
Well, VO is extremely weird at times
I agree, it does not make much sense, but we had to implement it the same way as in VO, otherwise it would certainly break existing (ported to X#) code.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
Re: String with Len 0
Horst,
Robert
Actually, this was "inherited" from dBase (so from the 80s)
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu