TEXT INTO and PARAMS

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

TEXT INTO and PARAMS

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: TEXT INTO and PARAMS

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

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

Re: TEXT INTO and PARAMS

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

Antonio Linares
www.fivetechsoft.com
Post Reply