compile.bat with multiple prgs

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

Post Reply
apichit
Posts: 33
Joined: Thu Jun 07, 2012 9:39 am

compile.bat with multiple prgs

Post 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
User avatar
koke
Posts: 116
Joined: Wed Aug 21, 2013 3:54 pm
DBs Used: DBF, mySql, mariaDB

Re: compile.bat with multiple prgs

Post by koke »

you can include the other prg in your main.prg
,___,
[O.o]
/)__)
-”–”-
KoKe
User avatar
gfilatov
Posts: 1067
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: compile.bat with multiple prgs

Post 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:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
apichit
Posts: 33
Joined: Thu Jun 07, 2012 9:39 am

Re: compile.bat with multiple prgs

Post by apichit »

Thank you KoKe.
Thank you Grigory.
Post Reply