Compiling Clipper Summer '87 with Harbour

317 views
Skip to first unread message

Wayne Theron

unread,
Apr 29, 2014, 12:04:54 PM4/29/14
to harbou...@googlegroups.com
I have a stock control and invoicing system written in Clipper '87. I compile using two batch files. The first batch file contains the following lines
Clipper @mainmenu
Clipper @stock
Clipper @branch
Clipper @debtors
Clipper @consign
Clipper @invoice
Clipper @utility

Then I execute the second batch file with a single parameter, namely "mainmenu", as in " b mainmenu". This batchfile has one line as follows
blinker @%1->

The clp files for each of the @<module> in the first batch file contains the name of the ".prg" file as follows
Mainmenu.clp:
mainmenu
procmgm
errorsys

stock.clp:
addstk
edstk
browstk
postings

Etc...

How do I compile these with hbkm2?

Massimo Belgrano

unread,
Apr 29, 2014, 12:14:56 PM4/29/14
to harbou...@googlegroups.com
list all your source prg in yourproject.hbp and compile with hbmk2 yourproject..hbp
mainmenu.prg
procmgm.prg
errorsys.prg
addstk.prg
edstk.prg
browstk.prg
postings.prg




Wayne Theron

unread,
Apr 29, 2014, 12:21:42 PM4/29/14
to harbou...@googlegroups.com
Thanks Massimo - I did'amt realise it was that simple.

I get 1 error on the following line

Left(variable,1,24).

Do I replace it with left(variable,1) or left(variable,24) ?

José Quintas

unread,
Apr 29, 2014, 12:26:34 PM4/29/14
to harbou...@googlegroups.com
If I understand, you know how to use a bat, but not how to compile.

group all clp content in a single hbp file:

copy mainmenu.clp + stock.clp + branch.clp + debtors.clp + consign.clp +
invoice.clp + utility.clp app.hbp

Then compile using hbmk2

hbmk2 app.hbp -m

And see result for additional files.

Note:
Your email don't have script for blinker (mainmenu.lnk).

Note2:
CLP is a list of PRGs.
HBP is a list of PRGs, and can have additional parameters to compile/link

José M. C. Quintas

Wayne Theron

unread,
Apr 29, 2014, 12:47:34 PM4/29/14
to harbou...@googlegroups.com
My apologies Jose,

The mainmenu.link file contains the following 9 records:
BLINKER MEMORY PACK 50
blinker executable clipper f41
OUTPUT mainmenu.exe
FILE mainmenu
BEGINAREA
FILE stock, branch, debtors, consign, invoice, utility
ALLOCATE toolkit, extend, super
ENDAREA
SEARCH clipper

Massimo Belgrano

unread,
Apr 29, 2014, 1:51:24 PM4/29/14
to harbou...@googlegroups.com
imo clipper cosider left(variable,1) 
but try a sample
i not have clipper ready to compile



--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Massimo Belgrano
Delta Informatica S.r.l. (Cliccami per scoprire 

Wayne Theron

unread,
Apr 29, 2014, 1:53:33 PM4/29/14
to harbou...@googlegroups.com

Thanks. Will do. I have left work already and will let you know if it worked.

Regards

Wayne

José Quintas

unread,
Apr 29, 2014, 3:44:12 PM4/29/14
to harbou...@googlegroups.com
Ok.
No additional library.
Then need only hbp with PRG list, and can add -m in hbp.

For caution, change main module to MAIN.

PROCEDURE Main

José M. C. Quintas

Wayne Theron

unread,
Apr 29, 2014, 3:45:27 PM4/29/14
to harbou...@googlegroups.com

Thanks Jose,

Will do.

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Web: http://groups.google.com/group/harbour-users

--- You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages