Sample Programs Or Program Examples

584 views
Skip to first unread message

Cotswold GB

unread,
Nov 28, 2023, 8:26:17 AM11/28/23
to Harbour Users
Hello &All
I have searched Harbour, HUG, GitHub and the internet for examples of completed
program (.prg)  files without success.  There are many helpful code examples, snippets
you may call them. The Harbour download itself has  236 .prg files, most of which are
helpful. I have amended a couple of my old Clipper87 programs to run in Harbour but
think apart from taking some of their functions, I would be better re-writing them in 
Harbour.

Searches on the internet generally confuse Harbour Programming with Harbor and
nautical matters. In fact if you want to build your own harbour or harbor a bureaucrat 
has helpfully provided instructions on how to do just that! 

The Harbour website suggests the-oasis.net but this contains no examples at all from
what I can see and no shortcuts unless you want to learn how to gamble and loose  
against a super computer.

If someone could point me in the direction to samples and examples of harbour PRGs, I
I would greatly appreciate that.  I did think that when I'd completed some of my own
software, I could issue them but cannot see a website, unless I created my own on 
GitHub.

Vincent

Klas Engwall

unread,
Nov 28, 2023, 3:51:56 PM11/28/23
to harbou...@googlegroups.com
Hi Vincent,

> I have searched Harbour, HUG, GitHub and the internet for examples
> of completed program (.prg)  files without success.  There are many
> helpful code examples, snippets you may call them. The Harbour
> download itself has  236 .prg files, most of which are helpful. I
> have amended a couple of my old Clipper87 programs to run in
> Harbour but think apart from taking some of their functions, I would
> be better re-writing them in Harbour.

I am not really sure what you expect to find when you search all over
the web for "completed programs". You have to realize that Harbourians
almost exclusively write business software, either tailor made for a
specific client and paid for by that client, or commercial applications
that are sold to many different customers. In both cases, publishing the
source code on the web would cause problems, legal and economic. So I
think you will ever only find the snippets that are meant as little
examples of what can be done or how to solve a specific problem.

> Searches on the internet generally confuse Harbour Programming with
> Harbor and nautical matters. In fact if you want to build your own
> harbour or harbor a bureaucrat has helpfully provided instructions
> on how to do just that!

Yes that is true. Harbour is a play with words, meaning that Clipper has
arrived at a safe harbour. To appreciate the joke you have to be
familiar with the ocean facing Nantucket where Nantucket Software
created Clipper, and with the big sailing clipper ships that inspired
the name.

In the real world of software the name was a mistake. As you have
noticed, every coastal city on the planet has one or more Harbour
projects, so web searches for Harbour the software is very difficult.
That's life.

> The Harbour website suggests the-oasis.net but this contains no
> examples at all from what I can see and no shortcuts unless you
> want to learn how to gamble and loose against a super computer.

the-oasis.net was owned and maintained by Phil Barnett. When he passed
away in the middle of the previous decade someone else took over the
domain and created a gambling site instead. Viktor Szakáts took a copy
from the Wayback Machine and put it in the Harbour repository on GitHub,
but it was later removed. I don't know the reason for that. I think you
can still find it at the Wayback Machine, but you have to select a year
before 2015 or so.

Regards,
Klas

Franz

unread,
Nov 29, 2023, 3:14:20 AM11/29/23
to Harbour Users
try this  https://hmgextended.com/files/CONTRIB/hmg-23.10-setup.exe

a complete way to start in Harbour World with a simple GUI and tons of samples code.

Cotswold GB

unread,
Nov 29, 2023, 2:32:37 PM11/29/23
to Harbour Users
Thanks for your reply Klas. I understand what you are saying and that applications could
not be issued as specifically written for clients. Also, to operate they will need the
authour's own private libraries and functions which they certainly could not issue.

I am always looking for an alternative to Access, which I have used to create commercial
applications for over 20 years. I did at one point five years ago think that PureBasic would
be suitable but that failed to be the case. At  the time I was put off by Harbour's more
esoteric requirements to just get started.  Plus the lack of a searchable Language Reference 
and manual didn't assist . 
But in retrospect should have persevered. I recall a simple example on the PureBasic website 
YADA - Yet Another Database Application using SQLite, a simple address program which showed 
methods that I wouldn't have come across for months. Its general design was not to my 
liking but I changed and adapted it to suit my way of working. But it did move me forward 
quickly. The PureBasic website does include a huge number of programs submitted by some
elite guys.

I'll amend one of my old Clipper87 programs and incorporate functions never used like
Code Blocks, TBrowse and stuff like hb_DispOutAt(). I will say that I have found
\hb32\tests\wvtext.prg and others interesting and helpful.

Franz, I did think I'd get some harbour programs running before I looked at GUI software.
However, I've downloaded MiniGUI and installed it. I'll take a look, certainly loads of examples. 
Coincidentally, I was looking through the manual for MinuGUI the other day.


Vincent

Daniele Campagna

unread,
Nov 30, 2023, 2:05:30 AM11/30/23
to harbou...@googlegroups.com
I  remember that a developer took the brave decision to "publish" the
source code of a complete POS program, that's to say that he attached
the prgs to his post. Unfortunately I can't remember if it was Harbour
or xHarbour NG/mailing list. Maybe someone here can remember what I am
talking about...

HTH

Dan

trepao2...@gmail.com

unread,
Nov 30, 2023, 2:52:48 AM11/30/23
to Harbour Users
Complete harbour ERP from Manuel Calero
It's need fwh commercial lib

Juice Orchid

unread,
Nov 30, 2023, 5:55:01 PM11/30/23
to harbou...@googlegroups.com
Maybe you can search "jimmie webb" at group

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://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.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/b317cc3e-8310-4a7b-bb71-24e3d811a5aa%40tiscalinet.it.
Screenshot_20231130-204724_Chrome.png

Riztan Gutierrez

unread,
Dec 3, 2023, 6:46:34 PM12/3/23
to harbou...@googlegroups.com
hello, below is the link to a base application. Multiplatform, maybe you can contribute something. It uses GTK as GUI (t-gtk), with this package you can test harbour and contributions like hbpgsl, tdolphin, hbcurl, hbnetio (client) and obviously t-gtk; all from scripts, you don't need to compile, so you can leave compiling for later.

https://sourceforge.net/projects/hbtools/files/TPuy%20-%20%28Binarios%20Windows%29/TPuy_0.6.2%28rc%29_with_PapayaPOS.exe/download

https://www.youtube.com/watch?v=IW2GOfaMuR8
Here you can see a video that shows what the included package did (papaya POS inactive for now) that basically consists of connecting to a harbour server (hbnetio) and through it to access the remote objects (in the client the variables defined with " r" at the beginning. In this way from the client application you make use of remote objects as if they were local objects.

Regards

________________________________________

hola, a continuación el enlace a una aplicación base. Multiplataforma, quizás pueda aportar algo. Usa GTK como interfaz gráfica (t-gtk), con este paquete puedes hacer pruebas del funcionamiento de harbour y contribuciones como hbpgsl, tdolphin, hbcurl, hbnetio (cliente) y obviamente t-gtk; todo desde scripts, no necesitas compilar, de manera que lo de compilar lo puedes dejar para después.

https://sourceforge.net/projects/hbtools/files/TPuy%20-%20%28Binarios%20Windows%29/TPuy_0.6.2%28rc%29_with_PapayaPOS.exe/download

https://www.youtube.com/watch?v=IW2GOfaMuR8
Acá puedes ver un vídeo que muestra un poco lo que hacía el paquete incluido (papaya POS inactivo por ahora) que consiste básicamente en conectar a un servidor harbour (hbnetio) y a través del mismo acceder a los objetos remotos (en el cliente las variables definidas con " r" al inicio. De esta forma desde la aplicación cliente haces uso de objetos remotos como si de objetos locales se tratara.

Saludos

Cotswold GB

unread,
Dec 4, 2023, 2:51:11 AM12/4/23
to Harbour Users
Thanks Riztan, I've now downloaded that and will take a look. I've watched some 
of the video and will look at it later on a PC with speakers.

Reply all
Reply to author
Forward
0 new messages