harbour operators

Post Reply
wartiaga
Posts: 254
Joined: Wed May 25, 2016 1:04 am

harbour operators

Post by wartiaga »

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.
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: harbour operators

Post by Antonio Linares »

Try with

! a == b
regards, saludos

Antonio Linares
www.fivetechsoft.com
wartiaga
Posts: 254
Joined: Wed May 25, 2016 1:04 am

Re: harbour operators

Post by wartiaga »

Antonio Linares wrote: Thu Aug 14, 2025 12:22 pm Try with

! a == b
Gracias Antonio!
User avatar
Enrico Maria Giordano
Posts: 9054
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: harbour operators

Post by Enrico Maria Giordano »

a = b with a and b of C type means "a starts with b":

Code: Select all | Expand

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

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