String with Len 0

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
Horst
Posts: 330
Joined: Tue Oct 13, 2015 3:27 pm

String with Len 0

Post 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
User avatar
Chris
Posts: 4851
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: String with Len 0

Post 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).
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply