Search found 214 matches: blocks

Return to advanced search

Re: Documentación sintaxis

... code which is also allowed within the body of a FUNCTION, except for the declaration of STATIC variables. Description Extended literal code blocks are created in program code using the <|| > characters. They can be used in the same way as regular code blocks but have the advantage ...
by nageswaragunupudi
Wed Oct 30, 2019 5:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Documentación sintaxis
Replies: 6
Views: 1451

Re: xtranslate

Otto, you may use this: 09:32 Uhr #xcommand BLOCKS [ PARAMS [<v1>] [,<vn>] ] => ; #pragma __cstream | AP_RPuts( ReplaceBlocks( MyTranslate( %s ), "{{", "}}" [,<(v1)>][+","+<(vn)>] [, @<v1>][, ...
by Otto
Sat Sep 14, 2019 7:57 am
 
Forum: mod_harbour
Topic: xtranslate
Replies: 1
Views: 481

xtranslate

... mHb_date() Thank you in advance Otto #xtranslate function Main() ? "Seconds {%Seconds()%} before compilation<br><br>" BLOCKS Current date is {{Date()}} Current date is mhb_date() ENDTEXT return nil
by Otto
Sat Sep 14, 2019 7:12 am
 
Forum: mod_harbour
Topic: xtranslate
Replies: 1
Views: 481

Re: mod harbour pass variable to html

ops, if you are going to use {{ ... }} then you have to use:

BLOCKS PARAM cText
by Antonio Linares
Wed Jul 31, 2019 5:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod harbour pass variable to html
Replies: 2
Views: 451

Re: mod harbour session js session object

... %s, [@<x>] [,<(v1)>][+","+<(vn)>] [, @<v1>][, @<vn>] ) )' )   __pp_addRule( hPP, "#xcommand BLOCKS [ PARAMS [<v1>] [,<vn>] ] => " + ;                      '#pragma __cstream | AP_RPuts( ReplaceBlocks( %s, "{{", ...
by Antonio Linares
Tue Jul 30, 2019 9:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod harbour session js session object
Replies: 20
Views: 2200

Re: mod harbour session js session object

Dear Antonio,
would you be so kind to explain how #xtranslate <matchPattern> => <resultPattern> works.
Does this work on BLOCKS too.
Best regards
Otto
by Otto
Tue Jul 30, 2019 8:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod harbour session js session object
Replies: 20
Views: 2200

Re: mod harbour session js session object

Otto, BLOCKS ... ENDTEXT search for {{ ... }} and whatever is inside {{ ... }} is "macro expanded" and replaced there and sent to Apache {{ ... }} is a standard from many "templates" systems, thats why mod_harbour ...
by Antonio Linares
Tue Jul 30, 2019 7:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod harbour session js session object
Replies: 20
Views: 2200

Re: mod harbour session js session object

Dear Antonio,
I mean hb_htlm() {{ ... }} would be more familiar to us CLIPPER heads.
Does xTranslate also translate code inside BLOCKS ?
Thank you in advance
Otto
by Otto
Tue Jul 30, 2019 7:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod harbour session js session object
Replies: 20
Views: 2200

Re: mod_harbour TEMPLATE/ENDTEXT

Otto,

There is a new mod_harbour with BLOCKS PARAMS ... support

I have updated it in your server ;-)

Please test the new example blocks2.prg
by Antonio Linares
Tue Jul 09, 2019 9:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod_harbour TEMPLATE/ENDTEXT
Replies: 11
Views: 953

Re: mod_harbour TEMPLATE/ENDTEXT

This seems the be the right code: #xcommand BLOCKS [ PARAMS [<v1>] [,<vn>] ] => #pragma __cstream | AP_RPuts( MyReplaceBlocks( %s, "{{", "}}" [,<(v1)>][+","+<(vn)>] [, @<v1>][, @<vn>] ...
by Antonio Linares
Tue Jul 09, 2019 8:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod_harbour TEMPLATE/ENDTEXT
Replies: 11
Views: 953

Re: mod_harbour TEMPLATE/ENDTEXT

Dear Otto, work in progress... #xcommand BLOCKS [ PARAMS [<v1>] [,<vn>] ] => #pragma __cstream | AP_RPuts( MyReplaceBlocks( %s, "{{", "}}" [,<(v1)>][+","+<(vn)>] [, @<v1>][, @<vn>] ...
by Antonio Linares
Tue Jul 09, 2019 8:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod_harbour TEMPLATE/ENDTEXT
Replies: 11
Views: 953

Re: mod_harbour TEMPLATE/ENDTEXT

Dear Antonio,
thank you.
TEMPLATE PARAMS cContent
is working perfect.

Can you please tell me how to do the same with

BLOCKS
Any text or HTML or whatever...
{{Time()}}

{{cContent}}

ENDTEXT
Best regards
Otto
by Otto
Mon Jul 08, 2019 1:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod_harbour TEMPLATE/ENDTEXT
Replies: 11
Views: 953

Re: mod_harbour TEMPLATE/ENDTEXT

... <?prg Time() ?><br> Otro<br> <?prg DToC( Date() ) ?> <br> Test show cContent<br> Si, ok<br> ENDTEXT BLOCKS {{ cContent }} ENDTEXT do case case AP_Method() == "GET" AP_RPuts( View( "default" ) ) case AP_Method() == "POST" ...
by Otto
Mon Jul 08, 2019 7:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod_harbour TEMPLATE/ENDTEXT
Replies: 11
Views: 953

Re: mod_harbour TEMPLATE/ENDTEXT

If you just want small sentences instead of entire functions then you can use BLOCKS instead of TEMPLATE:

Code: Select all  Expand view
BLOCKS
   Any text or HTML or whatever...
   {{Time()}}
ENDTEXT
 
by Antonio Linares
Mon Jul 08, 2019 7:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: mod_harbour TEMPLATE/ENDTEXT
Replies: 11
Views: 953

Re: TO JAmes Bott : command for tdata

... if with the tdata class I could use those passages written with the tdatabase class such as the recall of the deleted record or the execution of blocks When i build an application i build before many small tests to try and then I insert all these pieces into my application :I saw I had some prg ...
by Silvio.Falconi
Sun May 26, 2019 7:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TO James Bott : command for tdata
Replies: 9
Views: 1057
PreviousNext

Return to advanced search