FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Need advice to check exist of object.
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Need advice to check exist of object.
Posted: Thu Jul 13, 2017 07:56 PM
Hi,

I have checked this manually.

Code (fw): Select all Collapse
IF VALTYPE(oSelf)="O"
    IF VALTYPE(oSelf:oParent)="O"
        IF VALTYPE(oSelf:oParent:oCargo)="O"
            IF VALTYPE(oSelf:oParent:oCargo:oMHY_Kod)="O"
                oSelf:oParent:oCargo:oMHY_Kod:SetItems(.....)
            ENDIF
        ENDIF
    ENDIF
ENDIF


Is there any function/method to check it another way?

Thanks,
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Need advice to check exist of object.
Posted: Thu Jul 13, 2017 09:27 PM

Bad programming style, but running...

TRY
   oSelf:oParent:oCargo:oMHY_Kod:SetItems(.....)
END

Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Need advice to check exist of object.
Posted: Fri Jul 14, 2017 09:30 AM
hmpaquito wrote:Bad programming style, but running...

TRY
   oSelf:oMHY_Kod:SetItems(.....)
END


Thanks
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06

Continue the discussion