Page 1 of 1
TEXT INTO and PARAMS
Posted: Thu Dec 17, 2020 6:03 pm
by Otto
Dear Antonio,
how can i insert into a
TEXT INTO cHeader
block additional PARAMS?
I mean like TEMPLATE PARAMS hHash_DBF .
Best regards,
Otto
Re: TEXT INTO and PARAMS
Posted: Fri Dec 18, 2020 10:57 am
by Antonio Linares
Dear Otto,
mod_harbour defines these pp rules:
__pp_addRule( hPP, "#xcommand TEXT <into:TO,INTO> <v> => #pragma __cstream|<v>:=%s" )
__pp_addRule( hPP, "#xcommand TEXT <into:TO,INTO> <v> ADDITIVE => #pragma __cstream|<v>+=%s" )
and
__pp_addRule( hPP, "#xcommand TEMPLATE [ USING <x> ] [ PARAMS [<v1>] [,<vn>] ] => " + ;
'#pragma __cstream | AP_RPuts( InlinePrg( %s, [@<x>] [,<(v1)>][+","+<(vn)>] [, @<v1>][, @<vn>] ) )' )
Re: TEXT INTO and PARAMS
Posted: Fri Dec 18, 2020 11:03 am
by Antonio Linares
You may try this:
__pp_addRule( hPP, "#xcommand TEXT <into:TO,INTO> <v> [ PARAMS [<v1>] [,<vn>] ] =>
#pragma __cstream|<v>:=InlinePrg( %s, [@<x>] [,<(v1)>][+","+<(vn)>] [, @<v1>][, @<vn>] )" )