topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
mod harbour - is incredible
|
Re: Genesis - mod harbour
Postby Massimo Linossi » Wed Jan 15, 2020 8:55 am
Hello Otto.
I think that the most important part of mod_harbour is not the interface. This is something that you can make
in different ways. Making some projects you can see that is possible to reuse all the code already made with
harbour in windows. All the functions, the validations and data processing. This is incredible. You have nothing
to rewrite. Yes, the forms are different and you must use another approach. It's the same that we had to make
crossing from the old Dos programs to Windows. It's our work. Sometimes we have to learn something new.
But when we understand the way mod_harbour work, you can make big things. If I have to make some new projects,
also for a network, I will make it in mod_harbour. It can work with all computers (Apple too), tablets and if placed on
a published server can work on web too. What can we ask more from a language that we already know ?
|
mod harbour - is incredible
|
I look into mod_harbour samples and really didn't find harbour code, for me everything looks new.
Another thing - Three years ago I left to use dbf files, and I didn't find samples using MySql. I will not develop to web using dbf files.
|
mod harbour - is incredible
|
Vilian,
mod_harbour mysql examples:
[url:3ee659m8]https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/mysql.prg[/url:3ee659m8]
[url:3ee659m8]https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/orm.prg[/url:3ee659m8]
|
mod harbour - is incredible
|
Thanks.
|
mod harbour FWLOG
|
Dear Antonio,
I never opened an Apache console window.
Does this only work if I work with localhost or also from the internet?
Thank you in advance
Otto
|
mod harbour FWLOG
|
Dear Antonio,
in the meantime I added following function to my code.
Inside GENESIS index.prg I inserted a lot of logging calls.
logging( "nach AddLog" )
Now the hard work begins understanding what the code does:
678 GETCOOKIES
678 GETCOOKIES
678 GETCOOKIES
82 browse
93 routes
98 ->GET
419 VIEW
419 VIEW
359 GETCONTENT
359 GETCONTENT
359 GETCONTENT
359 GETCONTENT
419 VIEW
419 VIEW
359 GETCONTENT
359 GETCONTENT
359 GETCONTENT
...
Is there an other way to see what the program does.
Thank you in advance
Otto
//----------------------------------------------------------------------------//
function logging( cText )
local cLog
cLog := memoread("c:\xampp\htdocs\samples\genesis\prg.log")
cLog += ALLTRIM( str(procline(1)) ) + " " + cText+ CRLF
MEMOWRIT("c:\xampp\htdocs\samples\genesis\prg.log" , cLog, .f. )
return nil
|
mod harbour FWLOG
|
Dear Otto,
You can use the debugger and specifically the one provided by Antonino Perricone for vscode
I will make a video explaining how to use it...
|
mod harbour FWLOG
|
Dear Antonio,
how can I implement FWLOG into my mod harbour programs.
Is the sourcecode of FWLOG function public?
Thank you in advance
Otto
|
mod harbour FWLOG
|
Dear Otto,
From your PRG you call ShowConsole(), this will open a second Apache console window.
From that moment on, you can simply use QOut( ... ) and it will appear on the Apache console <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
that simple
|
mod harbour FWLOG
|
Dear Antonio,
thank you so much.
This will be of great help.
Best regards
Otto
|
mod harbour FWLOG
|
Dear Otto,
vscode:
[url:1rovoawc]https://code.visualstudio.com/[/url:1rovoawc]
From vscode, click on extensions and look for "Harbour" and select the one from Antonino Perricone
many thanks
|
mod harbour FWLOG
|
Dear Antonio,
I have looked the video. Thank you so much.
Would you please post the download links for IDE and Debugger.
Thank you in advance
Otto
[img:3tt9gkuu]https://mybergland.com/fwforum/videoantoniodebugger.jpg[/img:3tt9gkuu]
|
mod harbour PDF and PRINT
|
Hello,
today I made a report modul for my DOS Clipper Fibu (Accounting System) in mod Harbour.
Best regards
Otto
[img:38mv3pcm]https://mybergland.com/fwforum/fibuclip1.jpg[/img:38mv3pcm]
[img:38mv3pcm]https://mybergland.com/fwforum/fibuclip2.jpg[/img:38mv3pcm]
[img:38mv3pcm]https://mybergland.com/fwforum/fibuclip3.jpg[/img:38mv3pcm]
|
mod harbour PDF and PRINT
|
[code=fw:2zzjevq1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br />****************************************************************************<br />* Aplicacion: Test jQuery DataTable con Ajax para mod_harbour *<br />* Fuente: data1.prg *<br />* Autor: Joaquim Ferrer Godoy *<br />* Inicio: 06-08-2019 *<br />****************************************************************************<br />*/</span><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">local</span> hData := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span> <br /> <span style="color: #00C800;">local</span> hItem<br /> <br /> USE <span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/../data/aj.dbf"</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"data"</span> SHARED<br /> set order <span style="color: #0000ff;">to</span> tag ktonr<br /> hData<span style="color: #000000;">[</span><span style="color: #ff0000;">'data'</span><span style="color: #000000;">]</span> := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <br /> <span style="color: #00C800;">if</span> rlock<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> hItem := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span> <br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'beldat'</span><span style="color: #000000;">]</span> := data->beldat<br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'konto'</span><span style="color: #000000;">]</span> := rtrim<span style="color: #000000;">(</span>data->ktonr<span style="color: #000000;">)</span> <br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'text'</span><span style="color: #000000;">]</span> := convertXML<span style="color: #000000;">(</span> data->text <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> data->S_H = <span style="color: #000000;">1</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'soll'</span><span style="color: #000000;">]</span> := data->betrag<br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'haben'</span><span style="color: #000000;">]</span> := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">else</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'soll'</span><span style="color: #000000;">]</span> := <span style="color: #000000;">0</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'haben'</span><span style="color: #000000;">]</span> := data->betrag<br /> <span style="color: #00C800;">endif</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'gg_ktonr'</span><span style="color: #000000;">]</span> := data->gg_ktonr<br /> <br /> aadd<span style="color: #000000;">(</span> hData<span style="color: #000000;">[</span><span style="color: #ff0000;">'data'</span><span style="color: #000000;">]</span>, hItem <span style="color: #000000;">)</span><br /> dbskip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /> dbunlock<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span> <br /> CLOSE <br /> <br /> AP_SetContentType<span style="color: #000000;">(</span> <span style="color: #ff0000;">"application/json"</span> <span style="color: #000000;">)</span><br /> <br /> ?? hb_jsonEncode<span style="color: #000000;">(</span> hData, .T. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// T=pretty</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">function</span> convertXML<span style="color: #000000;">(</span> cVData <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> I := <span style="color: #000000;">0</span><br /> *----------------------------------------------------------<br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">228</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ä"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">246</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ö"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">252</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ü"</span> <span style="color: #000000;">)</span><br /> <br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">142</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ä"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">153</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ö"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">154</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ü"</span> <span style="color: #000000;">)</span><br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">223</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ß"</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #000000;">(</span>cVData<span style="color: #000000;">)</span><br /><br /><br /><br /><br /> </div>[/code:2zzjevq1]
|
mod harbour PDF and PRINT
|
Hello,
today I made a report modul for my DOS Clipper Fibu (Accounting System) in mod Harbour.
Best regards
Otto
[img:34ksci0v]https://mybergland.com/fwforum/fibuclip1.jpg[/img:34ksci0v]
[img:34ksci0v]https://mybergland.com/fwforum/fibuclip2.jpg[/img:34ksci0v]
[img:34ksci0v]https://mybergland.com/fwforum/fibuclip3.jpg[/img:34ksci0v]
|
mod harbour PDF and PRINT
|
[code=fw:1rt7fxjk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br />****************************************************************************<br />* Aplicacion: Test jQuery DataTable con Ajax para mod_harbour *<br />* Fuente: data1.prg *<br />* Autor: Joaquim Ferrer Godoy *<br />* Inicio: 06-08-2019 *<br />****************************************************************************<br />*/</span><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">local</span> hData := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span> <br /> <span style="color: #00C800;">local</span> hItem<br /> <br /> USE <span style="color: #000000;">(</span> hb_GetEnv<span style="color: #000000;">(</span> <span style="color: #ff0000;">"PRGPATH"</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"/../data/aj.dbf"</span> <span style="color: #000000;">)</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"data"</span> SHARED<br /> set order <span style="color: #0000ff;">to</span> tag ktonr<br /> hData<span style="color: #000000;">[</span><span style="color: #ff0000;">'data'</span><span style="color: #000000;">]</span> := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> <br /> <span style="color: #00C800;">if</span> rlock<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !eof<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> hItem := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span> <br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'beldat'</span><span style="color: #000000;">]</span> := data->beldat<br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'konto'</span><span style="color: #000000;">]</span> := rtrim<span style="color: #000000;">(</span>data->ktonr<span style="color: #000000;">)</span> <br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'text'</span><span style="color: #000000;">]</span> := convertXML<span style="color: #000000;">(</span> data->text <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> data->S_H = <span style="color: #000000;">1</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'soll'</span><span style="color: #000000;">]</span> := data->betrag<br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'haben'</span><span style="color: #000000;">]</span> := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">else</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'soll'</span><span style="color: #000000;">]</span> := <span style="color: #000000;">0</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'haben'</span><span style="color: #000000;">]</span> := data->betrag<br /> <span style="color: #00C800;">endif</span><br /> hItem<span style="color: #000000;">[</span><span style="color: #ff0000;">'gg_ktonr'</span><span style="color: #000000;">]</span> := data->gg_ktonr<br /> <br /> aadd<span style="color: #000000;">(</span> hData<span style="color: #000000;">[</span><span style="color: #ff0000;">'data'</span><span style="color: #000000;">]</span>, hItem <span style="color: #000000;">)</span><br /> dbskip<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">enddo</span><br /> dbunlock<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span> <br /> CLOSE <br /> <br /> AP_SetContentType<span style="color: #000000;">(</span> <span style="color: #ff0000;">"application/json"</span> <span style="color: #000000;">)</span><br /> <br /> ?? hb_jsonEncode<span style="color: #000000;">(</span> hData, .T. <span style="color: #000000;">)</span> <span style="color: #B900B9;">// T=pretty</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">function</span> convertXML<span style="color: #000000;">(</span> cVData <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> I := <span style="color: #000000;">0</span><br /> *----------------------------------------------------------<br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">228</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ä"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">246</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ö"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">252</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ü"</span> <span style="color: #000000;">)</span><br /> <br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">142</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ä"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">153</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ö"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">154</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ü"</span> <span style="color: #000000;">)</span><br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">223</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ß"</span> <span style="color: #000000;">)</span><br /> <br /><span style="color: #00C800;">return</span> <span style="color: #000000;">(</span>cVData<span style="color: #000000;">)</span><br /><br /><br /><br /><br /> </div>[/code:1rt7fxjk]
|
mod harbour PDF and PRINT
|
Otto:
Nice job, Congratulations ! <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Regards
|
mod harbour PDF and PRINT
|
Hi Otto.
Nice work, many compliments.
Is the saving to Excel working ? Because I've tried to convert a working function that opens a dbf and writes directly to Excel
files with ole but I receive an error with the oExcel:save command saying that the function is not found.
Thanks
Massimo
|
mod harbour PDF and PRINT
|
Hello Massimo,
for me it is working fine.
Best regards
Otto
[img:ywznaqom]https://myBergland.com/fwforum/excel.jpg[/img:ywznaqom]
|
mod harbour WYSIWYG editor read/save from DBF memo
|
Hello,
I am so happy - WYSIWYG editor is working - data from text file or DBF memo field. You can cut & paste images and then all is saved into the file again.
Thank you Antonio for mod harbour - I am so glad we have brilliant future as harbour/Clipper programmer again.
Best regards
Otto
[img:1wlj911h]https://mybergland.com/fwforum/wysiwyg.gif[/img:1wlj911h]
|
mod harbour WYSIWYG editor read/save from DBF memo
|
Dear Otto,
congratulations!
A nice and very interesting idea <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
mod_harbour power!!!
|
mod harbour WYSIWYG editor read/save from DBF memo
|
Hello,
I am so happy - WYSIWYG editor is working - data from text file or DBF memo field. You can cut & paste images and then all is saved into the file again.
Thank you Antonio for mod harbour - I am so glad we have brilliant future as harbour/Clipper programmer again.
Best regards
Otto
[img:262kuqwq]https://mybergland.com/fwforum/wysiwyg.gif[/img:262kuqwq]
|
mod harbour WYSIWYG editor read/save from DBF memo
|
16 lines of code!
Best regards
Otto
[img:12ut2d8i]https://mybergland.com/fwforum/wysiwygcode.png[/img:12ut2d8i]
[img:12ut2d8i]https://mybergland.com/fwforum/wysiwygcode2.png[/img:12ut2d8i]
|
mod harbour WYSIWYG editor read/save from DBF memo
|
16 lines of code!
Best regards
Otto
[img:29hpc7fc]https://mybergland.com/fwforum/wysiwygcode.png[/img:29hpc7fc]
[img:29hpc7fc]https://mybergland.com/fwforum/wysiwygcode2.png[/img:29hpc7fc]
|
mod harbour WYSIWYG editor read/save from DBF memo
|
Hello friends,
here is a working demo:
[url:2staa6vf]https://winhotel.space/modharbour_samples/docklands/docklandsviewer.prg[/url:2staa6vf]
Next I have to implement user identification.
I you face problems please let me know. Thank you for your help.
Inserting of pictures is limited to 2 MB.
Some code inside is from 1993 from my first WINHOTEL version in FIVEWIN. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
I think it is time that all of you do some testing. It is so great.
Best regards
Otto
|
mod harbour WYSIWYG editor read/save from DBF memo
|
Hello friends,
here is a working demo:
[url:3uhks6pz]https://winhotel.space/modharbour_samples/docklands/docklandsviewer.prg[/url:3uhks6pz]
Next I have to implement user identification.
I you face problems please let me know. Thank you for your help.
Inserting of pictures is limited to 2 MB.
Some code inside is from 1993 from my first WINHOTEL version in FIVEWIN. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
I think it is time that all of you do some testing. It is so great.
Best regards
Otto
|
mod harbour and Fivewin RDP in parallel
|
[img:19wgunso]https://mybergland.com/fwforum/fivevsmod.gif[/img:19wgunso]
|
mod harbour and Fivewin RDP in parallel
|
Dear Otto,
You are a great Master <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We need to organize a Harbour users meeting again... soon
|
mod harbour and Fivewin RDP in parallel
|
[quote="Antonio Linares":tzrh39o0]Dear Otto,
You are a great Master <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
We need to organize a Harbour users meeting again... soon[/quote:tzrh39o0]Great Idea
Enviado desde mi motorola edge 20 lite mediante Tapatalk
|
mod harbour and Fivewin RDP in parallel
|
Dear Antonio,
I am very interested. We could organize it in the same way as the 2017 meeting.
Best regards,
Otto
[img:h3wuaojg]https://bitbucket.org/fivetech/screenshots/downloads/dolomites2017.jpeg[/img:h3wuaojg]
|
mod harbour and Fivewin RDP in parallel
|
The plus - minus buttons are now functioning.
[img:ec9136fh]https://mybergland.com/fwforum/plusminus.gif[/img:ec9136fh]
|
mod harbour and a drag&drop web page builder
|
Hello,
Now I have a good solution, how I quickly can connect a DBF file with an HTML page made with a drag-and-drop web page builder.
Best regard,
Otto
[url:1iv5uph9]https://mybergland.com/fwforum/novibuilder.mp4[/url:1iv5uph9]
|
mod harbour call DLL
|
Hello,
is it possible to call DLLs.
Thank you in advance
Otto
|
mod harbour call DLL
|
Dear Otto,
Yes!
Please review mod_harbour/samples/mysql.prg source code
We use Harbour's dynamic linking
|
mod harbour club has now 100 members
|
[url:u8v3g253]https://www.facebook.com/groups/modharbour.club[/url:u8v3g253]
Dear friends,
I am delighted to announce that mod harbour club has now 100 members.
I am particularly pleased that our member number 100 is
[b:u8v3g253]Jacob Koopman[/b:u8v3g253] .
A singer and songwriter from Dublin, Ireland and a web designer.
I will introduce Jacob in further postings. A wonderful artist and person.
In advance already some links: <!-- m --><a class="postlink" href="https://www.youtube.com/watch?v=eVzTIrvZo70">https://www.youtube.com/watch?v=eVzTIrvZo70</a><!-- m -->
Best regards,
Otto
[img:u8v3g253]https://mybergland.com/fwforum/modclub.jpg[/img:u8v3g253]
[img:u8v3g253]https://mybergland.com/fwforum/jacob.jpg[/img:u8v3g253][/img]
|
mod harbour club has now 100 members
|
Great! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
mod harbour club has now 100 members
|
Congratulations Otto
|
mod harbour club has now 100 members
|
It would be great to have another Harbour & mod_Harbour conference with all the friends again
Maybe on zoom in the meantime ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
mod harbour connected to MS SQL
|
Dear friends,
Mr. Rao shows us how we can connect from mod harbour to MS SQL.
You see mod harbour working against MSSQL. For this to work you need to first install Microsoft OLEDB driver for SQL:
Download Link:
<!-- m --><a class="postlink" href="https://docs.microsoft.com/.../download-oledb-driver-for..">https://docs.microsoft.com/.../download ... iver-for..</a><!-- m -->.
Please download 64-bit version and install.
Then the above program will run in mod-harbour.
Note: We do not need to install SQL server on our PC/Server
The name of the installation file you downloaded should be "msoledbsql.msi".
After installing this and restarting the computer, you should find "c:\windows\system32\msoledbsql.dll"
That means the installation is complete.
Best regards,
Otto
[img:9mse0ki7]https://mybergland.com/fwforum/mssql.gif[/img:9mse0ki7]
|
mod harbour connected to MS SQL
|
Dear friends,
Mr. Rao shows us how we can connect from mod harbour to MS SQL.
You see mod harbour working against MSSQL. For this to work you need to first install Microsoft OLEDB driver for SQL:
Download Link:
<!-- m --><a class="postlink" href="https://docs.microsoft.com/.../download-oledb-driver-for..">https://docs.microsoft.com/.../download ... iver-for..</a><!-- m -->.
Please download 64-bit version and install.
Then the above program will run in mod-harbour.
Note: We do not need to install SQL server on our PC/Server
The name of the installation file you downloaded should be "msoledbsql.msi".
After installing this and restarting the computer, you should find "c:\windows\system32\msoledbsql.dll"
That means the installation is complete.
Best regards,
Otto
[img:2su2zjjv]https://mybergland.com/fwforum/mssql.gif[/img:2su2zjjv]
|
mod harbour connected to MS SQL
|
Dear friends,
Mr. Rao shows us how we can connect from mod harbour to MS SQL.
You see mod harbour working against MSSQL. For this to work you need to first install Microsoft OLEDB driver for SQL:
Download Link:
<!-- m --><a class="postlink" href="https://docs.microsoft.com/.../download-oledb-driver-for..">https://docs.microsoft.com/.../download ... iver-for..</a><!-- m -->.
Please download 64-bit version and install.
Then the above program will run in mod-harbour.
Note: We do not need to install SQL server on our PC/Server
The name of the installation file you downloaded should be "msoledbsql.msi".
After installing this and restarting the computer, you should find "c:\windows\system32\msoledbsql.dll"
That means the installation is complete.
Best regards,
Otto
[img:32k3tam5]https://mybergland.com/fwforum/mssql.gif[/img:32k3tam5]
|
mod harbour connected to MS SQL
|
Dear Otto
Link not run
|
mod harbour connected to MS SQL
|
Function to generate HTML table from a RecordSet.
This code does not depend on FWH and can be used in any non-fwh Harbour application.
[code=fw:1bhm06rn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> RecordSetToHTML<span style="color: #000000;">(</span> oRs, lHtmlPage <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cHTML := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> bm, n<br /><br /> cHTML := <span style="color: #000000;">[</span><table border=<span style="color: #ff0000;">"1"</span> width=<span style="color: #ff0000;">"100%"</span>><span style="color: #000000;">]</span><br /> cHTML += <span style="color: #ff0000;">"<tr>"</span><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> oRs:<span style="color: #000000;">Fields</span>:<span style="color: #0000ff;">Count</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">1</span><br /> cHTML += <span style="color: #000000;">(</span> <span style="color: #ff0000;">"<td><b>"</span> + oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span>:<span style="color: #0000ff;">Name</span> + <span style="color: #ff0000;">"</b></td>"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> cHTML += <span style="color: #ff0000;">"</tr>"</span><br /><br /> <span style="color: #00C800;">if</span> oRs:<span style="color: #000000;">RecordCount</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> bm := oRs:<span style="color: #000000;">Bookmark</span><br /> oRs:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cHTML += <span style="color: #ff0000;">"<tr><td>"</span><br /> cHTML += oRs:<span style="color: #000000;">GetString</span><span style="color: #000000;">(</span> <span style="color: #000000;">2</span>, oRs:<span style="color: #000000;">RecordCount</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"</td><td>"</span>,<span style="color: #ff0000;">"</td></tr><tr><td>"</span>,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">)</span><br /> cHTML += <span style="color: #ff0000;">"</td></tr>"</span><br /> oRs:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oRs:<span style="color: #000000;">BookMark</span> := bm<br /> <span style="color: #00C800;">endif</span><br /> cHTML += <span style="color: #ff0000;">"</table>"</span><br /><br /> <span style="color: #00C800;">if</span> lHtmlPage == .t.<br /> cHTML := <span style="color: #ff0000;">"<html>"</span> + CRLF + <span style="color: #ff0000;">"<body>"</span> + CRLF + cHTML + CRLF + <span style="color: #ff0000;">"</body>"</span> + CRLF + <span style="color: #ff0000;">"</html>"</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cHTML</div>[/code:1bhm06rn]
|
mod harbour connected to MS SQL
|
[quote="cnavarro":1ovhmowk]Dear Otto
Link not run[/quote:1ovhmowk]
<!-- m --><a class="postlink" href="https://docs.microsoft.com/en-us/sql/connect/oledb/download-oledb-driver-for-sql-server?view=sql-server-ver15">https://docs.microsoft.com/en-us/sql/co ... rver-ver15</a><!-- m -->
"https://docs.microsoft.com/en-us/sql/connect/oledb/download-oledb-driver-for-sql-server?view=sql-server-ver15"
|
mod harbour connected to MS SQL
|
Dear Mr. Rao,
Thank you.
It is working fine.
[img:3tl40hww]https://mybergland.com/fwforum/htmltable.jpg[/img:3tl40hww]
Best regards,
Otto
|
mod harbour connected to MS SQL
|
Wonderful.
Thank you.
|
mod harbour connected to MS SQL
|
Thank you Otto for showing this script. I find it very useful.
|
mod harbour guide
|
hi,
I'm starting with mod harbour, but I see a lot of post on this forum.
is it possible to put to the top of this forum a guide with daily update?
|
mod harbour guide
|
<!-- m --><a class="postlink" href="https://harbourproject.slack.com/messages/CJUHF8SBX/">https://harbourproject.slack.com/messages/CJUHF8SBX/</a><!-- m -->
|
mod harbour guide
|
mod_harbour section in these forums:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewforum.php?f=45&start=0">viewforum.php?f=45&start=0</a><!-- l -->
|
mod harbour multilanguage form
|
[img:2kywx35g]https://mybergland.com/fwforum/mm/mm1.jpg[/img:2kywx35g]
[img:2kywx35g]https://mybergland.com/fwforum/mm/mm2.jpg[/img:2kywx35g]
[img:2kywx35g]https://mybergland.com/fwforum/mm/mmger.PNG[/img:2kywx35g]
[img:2kywx35g]https://mybergland.com/fwforum/mm/mmit.PNG[/img:2kywx35g]
|
mod harbour multilanguage form
|
Otto,
very very nice.
|
mod harbour multilanguage form
|
Hello Massimo,
I see that I have to extend my convertumlaute - Funktion for Italian.
[code=fw:1p5fp3mk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> convertUmlaute<span style="color: #000000;">(</span> cVData <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> ctest := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">local</span> I := <span style="color: #000000;">0</span><br /> <span style="color: #B900B9;">//for I := 1 to len(cVData)</span><br /> <span style="color: #B900B9;">//? ( cVData + CRLF + substr(cVData,I,1) + " # "+ str( ASC ( substr(cVData,I,1)) ))</span><br /> <span style="color: #B900B9;">//next</span><br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">228</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ä"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">132</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ä"</span> <span style="color: #000000;">)</span><br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">246</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ö"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">148</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ö"</span> <span style="color: #000000;">)</span><br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">252</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ü"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">129</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ü"</span> <span style="color: #000000;">)</span><br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">196</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ä"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">142</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ä"</span> <span style="color: #000000;">)</span><br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">214</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ö"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">153</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"Ö"</span> <span style="color: #000000;">)</span><br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">220</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"&Üuml;"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">154</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"&Üuml;"</span> <span style="color: #000000;">)</span><br /> <br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">223</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ß"</span> <span style="color: #000000;">)</span><br /> cVData := STRTRAN<span style="color: #000000;">(</span>cVData, chr<span style="color: #000000;">(</span><span style="color: #000000;">225</span><span style="color: #000000;">)</span>, <span style="color: #ff0000;">"ß"</span> <span style="color: #000000;">)</span></div>[/code:1p5fp3mk]
Best regards. I hope I see you soon.
Best regards,
Otto
[img:1p5fp3mk]https://mybergland.com/fwforum/mm/ital.jpg[/img:1p5fp3mk]
|
mod harbour newsletter
|
[url:1k7ehvns]http://www.modharbour.org[/url:1k7ehvns]
Hello,
We sent the first newsletter.
[url:1k7ehvns]https://t4d236b6b.emailsys2a.net/mailing/22/2564889/0/54eb1cffa1/index.html[/url:1k7ehvns]
The first newsletter was a success. We have 35 new subscribers.
[b:1k7ehvns]Can you all please help with content for the next edition.[/b:1k7ehvns]
If someone of you has email addresses of colleges who do not know mod harbour by now, please send
the newsletter to them to and ask that they should subscribe.
mod harbor brings us an exciting time.
I wish you all a lovely day and remain with kind regards
Otto
|
mod harbour pass variable to html
|
Dear Antonio,
can you please show us how to pass a variable to HTML.
Thank you in advance
Otto
[img:1vt0887m]https://mybergland.com/fwforum/var2html.png[/img:1vt0887m]
|
mod harbour pass variable to html
|
TEMPLATE PARAMS cText
thats all you need <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Use this: {{ cText }} .
No need for ||
|
mod harbour pass variable to html
|
ops, if you are going to use {{ ... }} then you have to use:
BLOCKS PARAM cText
|
mod harbour program created automatically by tool
|
Hello friends,
Except for creating the database, the entire web program is created automatically by my tool: xBrw2mod.exe.
Best regards,
Otto
[img:3w1d59dx]https://mybergland.com/fwforum/dbcreate.jpg[/img:3w1d59dx]
[img:3w1d59dx]https://mybergland.com/fwforum/autogenerated.gif[/img:3w1d59dx]
|
mod harbour projects
|
Dear Antonio,
can you please show us how to build mod harbour web pages consisting of more prg files.
Best regards
Otto
|
mod harbour projects
|
copied from SLCK - Antonio answered:
If you want to use several PRGs at once, simply compile them into a single HRB file
and then use // {% LoadHrb( "file.hrb" ) %}
Otto 09:00 Uhr
Many thanks. How do I start? Is there a make file. Can you show us how to start a simple project with eg 3 prg files.
Antonio Linares 09:04 Uhr
mylib.prg
#include "file1.prg"
#include "file2.prg"
#include "file3.prg"
then you compile mylib.prg using harbour -gh -n mylib.prg
Now, from your app.prg use this as the top line: // {% LoadHrb( "mylib.hrb" ) %}
Otto 10:03 Uhr
Antonio, if it is ok for you I copy this topic to forum as I think this is very important for all.
|
mod harbour projects
|
FivEdit has new features to more easily support mod_harbour: generate .hrb [b:19cg2837][ ALT + F7 ][/b:19cg2837] files more easily, run directly in the browser and some more...
[img:19cg2837]https://i.postimg.cc/Vspchg56/Fivedit100.png[/img:19cg2837]
|
mod harbour quick links
|
Hello,
there is a domain with quick links to mod harbour stuff.
[url:33qfpi10]http://modharbour.online[/url:33qfpi10]
Best regards
Otto
|
mod harbour session js session object
|
Dear Antonio,
I am try to use the session object from javascript.
Can you show me how I could substitude generateUUID() - javascript function for example date() and time() as GUID with harbour and then pass harbour variable to javascript.
Thank you in advance
Otto
[img:37rkuce1]https://mybergland.com/fwforum/sessionobject.png[/img:37rkuce1]
[img:37rkuce1]https://mybergland.com/fwforum/sessionobj.png[/img:37rkuce1]
|
mod harbour session js session object
|
Dear Otto
Function in harbour is
win_UuidCreateString( [@<nStatus>] )
[quote:1t22qw0t]
contrib/hbwin/win_rpc.c
contrib/hbwin/tests/testrpc.prg
[/quote:1t22qw0t]
|
mod harbour session js session object
|
Dear Cristobal,
thank you.
Can you show me how to pass harbour variable to javascript.
Also a little sample how to show harbour variables inside html code would be great.
Best regards
Otto
|
mod harbour session js session object
|
Otto,
Your code is fine. The only observation is that you are generating it on the client side.
On a next example lets see how to generate it on the server side
|
mod harbour session js session object
|
Otto,
Using fields values in HTML code:
use < and > in both extremes, can't write them here:
input id="builder" name="builder" type="text" class="form-control" value="{{_Value('builder')}}"
Where function _Value( cFieldName ) is:
function _Value( cFieldName )
return FieldGet( FieldPos( cFieldName ) )
|
mod harbour session js session object
|
This is an example of an UUID generated from the server side using mod_harbour:
[quote:jwt4r7lp]C5843854-4DB4-1DB9-CCDB08473109
UUID generated on the server[/quote:jwt4r7lp]
[code=fw:jwt4r7lp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> BLOCKS<br /> ... begins the script<br /> <span style="color: #0000ff;">var</span> value = sessionStorage.getItem<span style="color: #000000;">(</span> <span style="color: #ff0000;">"MyId"</span> <span style="color: #000000;">)</span>;<br /> <br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> value == <span style="color: #00C800;">null</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> value = <span style="color: #ff0000;">"{{generateUUID()}}"</span>; <br /> sessionStorage.setItem<span style="color: #000000;">(</span> <span style="color: #ff0000;">"MyId"</span>, value <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /><br /> d ocument.write<span style="color: #000000;">(</span> value <span style="color: #000000;">)</span>;<br /> ... ends the script<br /> ENDTEXT<br /><br /> ? <span style="color: #ff0000;">"UUID generated on the server"</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> GenerateUUID<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cChars := <span style="color: #ff0000;">"0123456789ABCDEF"</span><br /> <span style="color: #00C800;">local</span> cUUID := <span style="color: #ff0000;">""</span><br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">8</span><br /> cUUID += <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cChars, hb_Random<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">16</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <br /> cUUID += <span style="color: #ff0000;">"-4"</span><br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">3</span><br /> cUUID += <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cChars, hb_Random<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">16</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /><br /> cUUID += <span style="color: #ff0000;">"-"</span><br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">4</span><br /> cUUID += <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cChars, hb_Random<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">16</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /><br /> cUUID += <span style="color: #ff0000;">"-"</span><br /><br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">12</span><br /> cUUID += <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cChars, hb_Random<span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">16</span> <span style="color: #000000;">)</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> <br /><span style="color: #00C800;">return</span> cUUID</div>[/code:jwt4r7lp]
|
mod harbour session js session object
|
Dear Antonio,
thank you so much.
Best regards
Otto
[img:2dfihei7]https://mybergland.com/fwforum/sessionfromharbour.png[/img:2dfihei7]
|
mod harbour session js session object
|
Dear Antonio,
would you please be so kind to make me a screenshot of the code insite the post.
Best regards
Otto
Otto,
Using fields values in HTML code:
use < and > in both extremes, can't write them here:
input id="builder" name="builder" type="text" class="form-control" value="{{_Value('builder')}}"
Where function _Value( cFieldName ) is:
function _Value( cFieldName )
return FieldGet( FieldPos( cFieldName ) )
|
mod harbour session js session object
|
[img:2cm46ztv]https://github.com/FiveTechSoft/screenshots/blob/master/modharbour_sandbox_UUID.PNG?raw=true[/img:2cm46ztv]
|
mod harbour session js session object
|
Dear Antonio,
thank you.
can you make me a sceenshot of this code too.
Thank you and best regards
Otto
Using fields values in HTML code:
use < and > in both extremes, can't write them here:
input id="builder" name="builder" type="text" class="form-control" value="{{_Value('builder')}}"
Where function _Value( cFieldName ) is:
function _Value( cFieldName )
return FieldGet( FieldPos( cFieldName ) )
|
mod harbour session js session object
|
[img:3g6pehux]https://github.com/FiveTechSoft/screenshots/blob/master/builder_view.JPG?raw=true[/img:3g6pehux]
|
mod harbour session js session object
|
Dear Antonio,
thank you.
Is it possible to change "{{_Value('builder')}}" with xZTranslate.
to HB2HTML('builder').
input id="builder" name="builder" type="text" class="form-control" value=" & HB2HTML('builder').
Thank you in advance
Otto
|
mod harbour session js session object
|
Otto,
We need to use {{ ... }} so mod_harbour knows what to replace in the view.
You can use ANY function from inside it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
|
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
|
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 use them too
mod_harbour also supports {% ... %} to receive "instructions" from the user. In example:
// {% hb_SetEnv( "HB_INCLUDE", "c:\harbour\include" ) %}
this code will be processed by mod_harbour [b:1msx9iua]PREVIOUS[/b:1msx9iua] to the execution of the PRG code
|
mod harbour session js session object
|
UUID (from server) source code:
[url:33mio7oy]https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/uuid.prg[/url:33mio7oy]
|
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
|
mod harbour session js session object
|
Otto,
Here you have some examples to understand it from apache.prg (mod_harbour)
[code=fw:13ropeob]<div class="fw" id="{CB}" style="font-family: monospace;"> __pp_addRule<span style="color: #000000;">(</span> hPP, <span style="color: #ff0000;">"#xcommand ? [<explist,...>] => AP_RPuts( '<br>' [,<explist>] )"</span> <span style="color: #000000;">)</span><br /> __pp_addRule<span style="color: #000000;">(</span> hPP, <span style="color: #ff0000;">"#xcommand ?? [<explist,...>] => AP_RPuts( [<explist>] )"</span> <span style="color: #000000;">)</span><br /> __pp_addRule<span style="color: #000000;">(</span> hPP, <span style="color: #ff0000;">"#define CRLF hb_OsNewLine()"</span> <span style="color: #000000;">)</span><br /> __pp_addRule<span style="color: #000000;">(</span> hPP, <span style="color: #ff0000;">"#xcommand TEXT <into:TO,INTO> <v> => #pragma __cstream|<v>:=%s"</span> <span style="color: #000000;">)</span><br /> __pp_addRule<span style="color: #000000;">(</span> hPP, <span style="color: #ff0000;">"#xcommand TEXT <into:TO,INTO> <v> ADDITIVE => #pragma __cstream|<v>+=%s"</span> <span style="color: #000000;">)</span><br /> __pp_addRule<span style="color: #000000;">(</span> hPP, <span style="color: #ff0000;">"#xcommand TEMPLATE [ USING <x> ] [ PARAMS [<v1>] [,<vn>] ] => "</span> + ;<br /> <span style="color: #ff0000;">'#pragma __cstream | AP_RPuts( InlinePrg( %s, [@<x>] [,<(v1)>][+","+<(vn)>] [, @<v1>][, @<vn>] ) )'</span> <span style="color: #000000;">)</span><br /> __pp_addRule<span style="color: #000000;">(</span> hPP, <span style="color: #ff0000;">"#xcommand BLOCKS [ PARAMS [<v1>] [,<vn>] ] => "</span> + ;<br /> <span style="color: #ff0000;">'#pragma __cstream | AP_RPuts( ReplaceBlocks( %s, "{{", "}}" [,<(v1)>][+","+<(vn)>] [, @<v1>][, @<vn>] ) )'</span> <span style="color: #000000;">)</span> <br /> __pp_addRule<span style="color: #000000;">(</span> hPP, <span style="color: #ff0000;">"#command ENDTEMPLATE => #pragma __endtext"</span> <span style="color: #000000;">)</span></div>[/code:13ropeob]
function ReplaceBlocks() does the magic for the "{{ ... }}". In fact this function allows you to use any starting and ending characters to replace blocks:
[code=fw:13ropeob]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> ReplaceBlocks<span style="color: #000000;">(</span> cCode, cStartBlock, cEndBlock, cParams, ... <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> nStart, nEnd, cBlock<br /> <span style="color: #00C800;">local</span> lReplaced := .F.<br /> <br /> hb_default<span style="color: #000000;">(</span> @cStartBlock, <span style="color: #ff0000;">"{{"</span> <span style="color: #000000;">)</span><br /> hb_default<span style="color: #000000;">(</span> @cEndBlock, <span style="color: #ff0000;">"}}"</span> <span style="color: #000000;">)</span><br /> hb_default<span style="color: #000000;">(</span> @cParams, <span style="color: #ff0000;">""</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">while</span> <span style="color: #000000;">(</span> nStart := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cStartBlock, cCode <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span> .and. ;<br /> <span style="color: #000000;">(</span> nEnd := <span style="color: #00C800;">At</span><span style="color: #000000;">(</span> cEndBlock, cCode <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> != <span style="color: #000000;">0</span><br /> cBlock = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, nStart + Len<span style="color: #000000;">(</span> cStartBlock <span style="color: #000000;">)</span>, nEnd - nStart - Len<span style="color: #000000;">(</span> cEndBlock <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> cCode = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, <span style="color: #000000;">1</span>, nStart - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> + ;<br /> ValToChar<span style="color: #000000;">(</span> Eval<span style="color: #000000;">(</span> &<span style="color: #000000;">(</span> <span style="color: #ff0000;">"{ |"</span> + cParams + <span style="color: #ff0000;">"| "</span> + cBlock + <span style="color: #ff0000;">" }"</span> <span style="color: #000000;">)</span>, ... <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">(</span> cCode, nEnd + Len<span style="color: #000000;">(</span> cEndBlock <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> lReplaced = .T.<br /> end<br /> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> HB_PIsByRef<span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>, lReplaced, cCode <span style="color: #000000;">)</span></div>[/code:13ropeob]
|
mod harbour session js session object
|
Antonio,
is it possible to save sessions data from the mod_harbour code and not inside the HTML ?
like :
[code=fw:2a581ah8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> nome_utente<br />use <span style="color: #ff0000;">"data"</span> shared <span style="color: #00C800;">new</span> readonly <span style="color: #0000ff;">alias</span> infos <br />set order <span style="color: #0000ff;">to</span> tag CODICE<br />nome_utente = <span style="color: #ff0000;">""</span><br />seek <span style="color: #ff0000;">"test"</span><br /><span style="color: #00C800;">if</span> found<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> nome_utente = alltrim<span style="color: #000000;">(</span>infos->NOME<span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br />use<br />sessionsave<span style="color: #000000;">(</span>nome_utente<span style="color: #000000;">)</span> <---- <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2a581ah8]
|
mod harbour session js session object
|
Massimo,
The PRG code runs on the server, so whatever you may want to save as a session identifier, it will be saved on the server.
You could store the "session" id info in a file, inside a DBF, on a SQL table, etc, but always on the remote server if PRG is being used for it
|
mod harbour session js session object
|
Antonio,
even if I call a javascript that make this ?
[url] https://www.w3schools.com/jsref/prop_win_sessionstorage.asp [/url]
|
mod harbour web template DBF driven for free download
|
Hello,
mod harbour web template DBF driven is ready for download.
[url:1o3mrfje]https://www.modharbour.club[/url:1o3mrfje]
Best regards
Otto
|
mod harbour web template DBF driven for free download
|
Hello,
mod harbour web template DBF driven is ready for download.
<!-- m --><a class="postlink" href="https://www.modharbour.club">https://www.modharbour.club</a><!-- m -->
Best regards
Otto
|
mod harbour web template DBF driven for free download
|
modHarbourPress running from FIVETech webhosting
[url:1su6gy8x]https://xbhosts.com[/url:1su6gy8x]
[url:1su6gy8x]http://54.37.60.40/modharbour_samples/modharbourclub/index.prg[/url:1su6gy8x]
Best regards
Otto
|
mod harbour web template DBF driven for free download
|
modHarbourPress running from FIVETech webhosting
[url:1v7472yq]https://xbhosts.com[/url:1v7472yq]
[url:1v7472yq]http://54.37.60.40/modharbour_samples/modharbourclub/index.prg[/url:1v7472yq]
Best regards
Otto
|
mod harbour web template DBF driven for free download
|
Hello,
Now I can edit the whole Blog with GENESIS.
Best regards
Otto
[img:1xvokrhe]https://mybergland.com/fwforum/manager.gif[/img:1xvokrhe]
|
mod harbour web template DBF driven for free download
|
Hello,
Here you see how to use GENESIS mod harbour to administrate a web page.
Best regards
Otto
[img:30w2ilki]https://mybergland.com/fwforum/comment.gif[/img:30w2ilki]
|
mod harbour with WYSIWYG text editor
|
Hello,
Best regards
Otto
[url:ng9mkgmd]https://harbour.fourtech.es/modharbour_samples/genesis/index.prg?views:exec:11[/url:ng9mkgmd]
[img:ng9mkgmd]https://mybergland.com/fwforum/texteditor.jpg[/img:ng9mkgmd]
|
mod harbour with WYSIWYG text editor
|
Otto,
Wow! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Great!!!
many thanks
|
mod harbour with WYSIWYG text editor
|
We need to create a views gallery <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Actually we are saving them in:
[url:19z3e123]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples/genesis/views[/url:19z3e123]
BTW, Otto, lets use the new mod_harbour forums section here please:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewforum.php?f=45">viewforum.php?f=45</a><!-- l -->
|
mod harbour write a program in 5 minutes
|
Hello,
and now with DBF database.
Best regards,
Otto
[img:xmdwwzax]https://mybergland.com/fwforum/clip4data.jpg[/img:xmdwwzax]
[img:xmdwwzax]https://mybergland.com/fwforum/sourcedatabase.jpg[/img:xmdwwzax]
|
mod harbour write a program in 5 minutes
|
Hello,
you can write a fully responsive web page within 5 minutes.
Please see:
[b:makq1yrh]1. see the result[/b:makq1yrh] - fully responsive - great looking
video
[url:makq1yrh]https://mybergland.com/fwforum/bootstrap1.gif[/url:makq1yrh]
[img:makq1yrh]https://mybergland.com/fwforum/bs2.jpg[/img:makq1yrh]
[b:makq1yrh]2. take Bootstap[/b:makq1yrh] to design your layout
video
[url:makq1yrh]https://mybergland.com/fwforum/bootstrap2.gif[/url:makq1yrh]
[img:makq1yrh]https://mybergland.com/fwforum/bs1.jpg[/img:makq1yrh]
[b:makq1yrh]3. edit your code[/b:makq1yrh]
video
[url:makq1yrh]https://mybergland.com/fwforum/bootstrap3.gif[/url:makq1yrh]
[img:makq1yrh]https://mybergland.com/fwforum/bs3.jpg[/img:makq1yrh]
Best regards
Otto
|
mod harbour write a program in 5 minutes
|
Hello,
and now with DBF database.
Best regards,
Otto
[img:xtnbecp6]https://mybergland.com/fwforum/clip4data.jpg[/img:xtnbecp6]
[img:xtnbecp6]https://mybergland.com/fwforum/sourcedatabase.jpg[/img:xtnbecp6]
|
mod harbour write a program in 5 minutes
|
Mr. Otto.
AWESOME. <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
Congratulations.
Jose.
|
mod harbour write a program in 5 minutes
|
Hello,
you can write a fully responsive web page within 5 minutes.
Please see:
[b:3g1etdxf]1. see the result[/b:3g1etdxf] - fully responsive - great looking
video
[url:3g1etdxf]https://mybergland.com/fwforum/bootstrap1.gif[/url:3g1etdxf]
[img:3g1etdxf]https://mybergland.com/fwforum/bs2.jpg[/img:3g1etdxf]
[b:3g1etdxf]2. take Bootstap[/b:3g1etdxf] to design your layout
video
[url:3g1etdxf]https://mybergland.com/fwforum/bootstrap2.gif[/url:3g1etdxf]
[img:3g1etdxf]https://mybergland.com/fwforum/bs1.jpg[/img:3g1etdxf]
[b:3g1etdxf]3. edit your code[/b:3g1etdxf]
video
[url:3g1etdxf]https://mybergland.com/fwforum/bootstrap3.gif[/url:3g1etdxf]
[img:3g1etdxf]https://mybergland.com/fwforum/bs3.jpg[/img:3g1etdxf]
Best regards
Otto
|
mod harbour xBrowse
|
Hello,
New VERY IMPRESSIVE example from Quim Ferrer
[url:3jhugmhm]https://harbour.fourtech.es/modharbour_samples/datatable.prg[/url:3jhugmhm]
Incredibly fast.
Regards
Otto
[
|
mod harbour xBrowse
|
Very Impressive!
|
mod harbour xBrowse
|
Otto,
404 Not Found
If a Click on
[code=fw:2zdrjdix]<div class="fw" id="{CB}" style="font-family: monospace;">https:<span style="color: #B900B9;">//harbour.fourtech.es/modharbour_samples/datatable.prg</span></div>[/code:2zdrjdix]
bye
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.