Page 1 of 1

compile.bat with multiple prgs

Posted: Sun Jun 02, 2019 2:35 am
by apichit
Hi

I try Harbor MiniGUI Extended Edition 19.04 (Update 2).
To print the data as a pdf file by complie with compile.bat as follows

call ..\..\..\..\Batch\Compile.Bat main6 %1 /l hmg_hpdf /l hbhpdf /l libhpdf /l png /l hbzlib %2 %3 %4 %5 %6 %7 %8 %9

It works well But I want to complie more than 1 .prg file
I have checked in the example in C:\MiniGUI\SAMPLES\BASIC\MULTI_PRG

There is a batch file named build.bat that says
call .. .. .. hbmk2.bat% * demo other

I don't know how to compile using compile.bat to combine multiple .prg and print pdf files.

Please help
Thank you very much

Re: compile.bat with multiple prgs

Posted: Mon Jun 03, 2019 12:27 pm
by koke
you can include the other prg in your main.prg

Re: compile.bat with multiple prgs

Posted: Mon Jun 03, 2019 12:36 pm
by gfilatov
apichit wrote: Sun Jun 02, 2019 2:35 am Hi

I try Harbor MiniGUI Extended Edition 19.04 (Update 2).
To print the data as a pdf file by complie with compile.bat as follows

call ..\..\..\..\Batch\Compile.Bat main6 %1 /l hmg_hpdf /l hbhpdf /l libhpdf /l png /l hbzlib %2 %3 %4 %5 %6 %7 %8 %9

It works well But I want to complie more than 1 .prg file
I have checked in the example in C:\MiniGUI\SAMPLES\BASIC\MULTI_PRG

There is a batch file named build.bat that says
call .. .. .. hbmk2.bat% * demo other

I don't know how to compile using compile.bat to combine multiple .prg and print pdf files.

Please help
Thank you very much
Hi,

Please take a look for compile.bat sample with using of multiple .prg at your folder minigui\samples\Advanced\GridToolBar
call ..\..\..\Batch\Compile.Bat Main %1 /nl %2 %3 %4 %5 %6 %7 %8 %9
call ..\..\..\Batch\Compile.Bat grid2csv %1 /nl %2 %3 %4 %5 %6 %7 %8 %9
call ..\..\..\Batch\Compile.Bat gridprint %1 /nl %2 %3 %4 %5 %6 %7 %8 %9
call ..\..\..\Batch\Compile.Bat gridpdf %1 /nl %2 %3 %4 %5 %6 %7 %8 %9
call ..\..\..\Batch\Compile.Bat gridtoolbar %1 /nl %2 %3 %4 %5 %6 %7 %8 %9

call ..\..\..\Batch\Compile.Bat Main %1 /lo /b grid2csv /b gridprint /b gridpdf /b gridtoolbar /r GridToolBar /l hmg_hpdf /l hbhpdf /l libhpdf /l png /l hbzlib %2 %3 %4 %5 %6 %7 %8 %9

call ..\..\..\Batch\Compile.Bat Main %1 /do %2 %3 %4 %5 %6 %7 %8 %9
call ..\..\..\Batch\Compile.Bat grid2csv %1 /do %2 %3 %4 %5 %6 %7 %8 %9
call ..\..\..\Batch\Compile.Bat gridprint %1 /do %2 %3 %4 %5 %6 %7 %8 %9
call ..\..\..\Batch\Compile.Bat gridpdf %1 /do %2 %3 %4 %5 %6 %7 %8 %9
call ..\..\..\Batch\Compile.Bat gridtoolbar %1 /do %2 %3 %4 %5 %6 %7 %8 %9
Hope that helps :idea:

Re: compile.bat with multiple prgs

Posted: Tue Jun 04, 2019 1:11 pm
by apichit
Thank you KoKe.
Thank you Grigory.