FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour HB_FUNCPTR(<x>) function in Harbour?
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
HB_FUNCPTR(<x>) function in Harbour?
Posted: Wed Jun 26, 2013 08:43 PM
Hi,

I used to this function to be know is a function defined in my program compiled from xHarbour.

Code (fw): Select all Collapse
FUNCTION Method_Run1(bRunBlock, cRunBlock, lResult) 
LOCAL bTemp, Result := lResult
    DEFAULT Result := .T.
    IF !Empty(bRunBlock) .AND. HB_FUNCPTR(cRunBlock)<>NIL
        Result := Eval(bRunBlock)
    ENDIF
RETURN Result


How can I know it in Harbour?

Thanks
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: HB_FUNCPTR(&lt;x&gt;) function in Harbour?
Posted: Thu Jun 27, 2013 06:25 AM
Hakan,

Traditionally since Clipper you can do:

? Type( "FunctionName()" ) != "UE"

http://www.fivetechsoft.com/harbour-docs/harbour-reference-guide.htm#Type
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion