Rafa Carmona
unread,Feb 20, 2012, 12:23:19 PM2/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FastReport for [x]Harbour, Alaska Xbase++, Visual FoxPro
Hi, I am evaluating this tool, I feel great, thank you very much
Spirin Sergey
A tip to be faster when using event "OnUserFunction"
FrPrn:SetEventHandler( "Report", "OnUserFunction", { | FName,
aFParams | CallUserFunction( FName, aFParams ) } )
function CallUserFunction ( fName, aFParams )
Local uRes
if empty( aFParams )
uRes := HB_ExecFromArray( FNAME )
else
uRes := HB_ExecFromArray( FNAME, aFParams )
endif
return uRes
Thus, we need not define function by function, can also be more
proactive in defining the functions outside the PRG and take them into
a dbf, for instance.
Regards