@mc8647_rimuovi: "I'd like to know how to check if a specific routine is linked and 
available to be called - in this case create a codeblock.
I'm not fluent with code blocks and xharbour internals, I think code 
should be something like this:
F = "myfunc"
if IsLinked( F )
	bF := &("{ ||" +  F + "() )")
endif
or it may be possible to use ExecFromArray
IsLinked may be created in C using dynsymFindName function but I'm not 
sure it's the right way to go....
F"
    @genestempel: "news:fsjon4$18ni$<email_address>
<quote>
Try this:
function isfunction( cFunc )
   return __dynsIsFun(__dynsGetIndex(cFunc))
Regards,
Gene"
    @mlacecilia: "Maybe you can try Type("myfunc()"), but not sure this can solve your 
problem. The reference guide says:
"Type() can also determine the data type of a macro expression containing 
function calls. This is restricted, however, to basic functions built into 
xHarbour which operate on simple data types. If the macro expression 
contains calls to complex functions or user-defined functions, Type() does 
not evaluate the macro expression and, thus, cannot determine the data 
type."
Maurizio
"FP" <email_address> ha scritto nel messaggio 
news:fsjon4$18ni$<email_address>
<quote>"
    @Ron: "<quote>
Type() is the correct way, in Clipper and in xHarbour. You should just check 
the result is == 'U' vs. "UI".
Ron "
    @emotta: "Function Test()
? FindFunction("Lastkey()")  // return .T.
? FindFunction("MyFunc()") // return .F.
Return
Function FindFunction(cFuncao)
If ! "(" In cFuncao
   cFuncao := AllTrim(cFuncao)+"()"
EndIf
Return Type(cFuncao) == "UI"
"FP" <email_address> escreveu na mensagem
news:fsjon4$18ni$<email_address>
<quote>"
    @Ron: "<quote>
FWIW, little faster, and more elegant:
   cFunction := AllTrim( cFunction )
   IF cFunction[-1] != ')'
      cFunction += "()"
   ENDIF
Ron"
    @emotta: "Thanks Ron
"Ron Pinkas" <email_address> escreveu na mensagem
news:fstkok$c84$<email_address>
<quote>"
    @fatfat: "it seem the function will be execute to get the type for variaible for user 
define variable.
inside your user define function, you need to aware of this point, before 
that, I debug for a long time to find out this.
just 2c
Thanks
"Ron Pinkas" <email_address> wrote in message 
news:fstkok$c84$<email_address>
<quote>"
{'source': 'USENET', 'other_information': '{"reply_count": 7, "forum_name": "comp.lang.xharbour.20140827.mbox"}', 'file': 'data/output/usenet-comp.lang.parquet'}