TEXT INTO and PARAMS

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

TEXT INTO and PARAMS

Postby Otto » Thu Dec 17, 2020 6:03 pm

Dear Antonio,
how can i insert into a
TEXT INTO cHeader
block additional PARAMS?
I mean like TEMPLATE PARAMS hHash_DBF .

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: TEXT INTO and PARAMS

Postby Antonio Linares » Fri Dec 18, 2020 10:57 am

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>] ) )' )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: TEXT INTO and PARAMS

Postby Antonio Linares » Fri Dec 18, 2020 11:03 am

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>] )" )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 5 guests