FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour harbour operators
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
harbour operators
Posted: Thu Aug 14, 2025 12:11 PM

Hello,

I have a question about operators in harbour, specifically <>. In a variable a="TEST" and in a variable b="TEST1", when testing a <> b, it returns true. How should I proceed? Thank you.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: harbour operators
Posted: Thu Aug 14, 2025 12:22 PM

Try with

! a == b

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: harbour operators
Posted: Thu Aug 14, 2025 06:32 PM
Antonio Linares wrote: Try with

! a == b
Gracias Antonio!
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: harbour operators
Posted: Thu Aug 14, 2025 07:10 PM
a = b with a and b of C type means "a starts with b":
"Test" = "T" --> .T.
"Test" = "A" --> .F.

"Test" == "T" --> .F.
"Test" == "Test" --> .T.

Continue the discussion