Xbase++ : compare Object

Post Reply
User avatar
Jimmy
Posts: 165
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Xbase++ : compare Object

Post by Jimmy »

hi,

i try harbour with Class Code and have a Problem

Code: Select all

    IF oCenterIn != oParent
      aPos := oCenterIn:MapPoint( oParent, aPos )
   ENDIF
 
both are Xbase++ Class Object but under harbour i get
Error BASE/1072 Argument error: <>

HBPAPPDESKTOP <> HBPAPPDESKTOP

Called from CENTERCONTROL(113)
Called from MAIN(276)
so i can't compare Class Object with harbour :?:
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Xbase++ : compare Object

Post by Antonio Linares »

Jimmy,

Try this:

IF ! oCenterIn == oParent
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 165
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Xbase++ : compare Object

Post by Jimmy »

hi,
Antonio Linares wrote: Try this:

Code: Select all

IF ! oCenterIn == oParent
that Syntax seems to work, THX
greeting,
Jimmy
Post Reply