Hi,
Would this also work ?
STATIC FUNCTION MYRPC_FILTER( sFuncSym, ... )
sFuncSym := 'rpc_'+sFuncSym
IF IsFunction(sFuncSym)
RETURN sFuncSym:exec( ... )
ENDIF
RETURN "<<unsupported function>>"
So all you have to do to enable a function to be remotely callable is
name it beginnign with 'rpc_'
Am I missing something ?
sFuncSym is symbol (but not a string), and I expect RTE on:
'rpc_' + sFuncSym
I guess it should be changed to:
sFuncSym := __DYNSN2SYM('rpc_' + sFuncSym:name )
Regards,
Mindaugas
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour