Fork me on GitHub
 Improve this page

Code Examples

This is a small collection of short examples from Harbour’s test directory.

Categories


Basic

Arrays

Database

Extensions

Web

More examples

You can find many more examples in the source package of Harbour. Look into the tests and extras directories to find them, but the best example is the source code of Harbour itself.


How to build/run applications

Build:

$ hbmk2 app.prg
$ ./app

or run them as scripts:

$ hbrun app.prg