Miscellaneous HMG samples

Miscellaneous Contributed samples and applications

Mini File Manager – Jayadev, Esgici, Dr. Soto

Harbour Samples

Here you will find some programming examples in Harbour language. These examples compiled various sources by courtesy of original authors and doesn’t have any promotional purpose. Only intention is being helpful to who wants to learn.

All examples are about console (text) mode. Primary goal of this way is keeping theme as soon as simple for easy understanding.

For building, plaise refer here.

Basic

A typical Harbour Program 

Arrays

Array Basics

          Copy and compare Arrays

Multi-Dimensional Arrays

Uniform arrays

CURSORs

Fill a two dimensional array

Control Structures

Loops

FOR .. NEXT Loop

WHILE..ENDDO Loop 

Decision making

IF..ENDIF

DO CASE..ENDCASE

Environment

Environment Variables 

Data Retrieve

TBrowse

Data Management

Constants

Variables

Files and Directories

       ADir() Function

       DirChange() Function

       Directory() Function

       DiskChange() Function

Extract Lines

FileSeek() Function

FileCopy() Function

Volum Info

Text File Processing

Strings

Remove a line from a text file

First + Last words in a string

Parsing Text – FParse()

Parsing Text – Tokens()

UDFs

Calling by reference

Defining and calling 

Extended

Data types &  syntax extensions

Extended Field Types in Harbour 

FOR EACH..NEXT loop

Hashes

          Hash Basics

Hash Details – 1

Hash Details – 2

Hash vs Table

Nested Hashes

          Memo File Extention

Operator overloading

Strings as Array

HMG Samples

About HMG Samples

Language Related

 Arrays

Array Arithmetic

Load / Save ANY array

Conversion

DOS -> Windows Character Conversion

National Issues

National Alternate Collating Sequence

National Change Case

 Windows

Tracking Mouse

Controls

Browse

Quick Search    

Combo box

Dynamic ComboBox

Edit Box

Word wrap in EditBox

 Grid

Get Data Into Grid via IDE

Text Box

Auto fill in text box

Search in and Fill Box (SFilBox) 

Tree

Tree Menu

Two Methods for Tree

Functions

 Drives, Directories and Files

Drives and Directories

Directory List

Fill Directory List

PutFile() with default file name

Messages

HMG Message Functions

Message for multiple values

Message Extended

Where Is It ?

Improvements in Message functions

Miscellaneous

Is application running ?

Get Process ID

Simple Error Handling

Funny

Cuckoo Clock

Untouchable window

Warn Lazy User

Pegs Game

Drawing

Play Draw

Draw Border

Printing

 Text Mode

Using printer under Windows 

Obsolete ways

Send to File

Print File

GUI Mode

HMG Print

 HMG Print ( Mini Print ) for beginners in 10 easy steps

Print a plain text file by HMG Print – 1

HMG Report

HMG HPDF

HMG_HPDF — Bill

Unicode

HMG Unicode

Utilities

Color Codes

DB Validate 

Hex View

Mini Agenda

DBA : Data Base Assistant

Low-Level DBU

x-Base Modul List

Mini Search Machine (2014) 

About HMG Samples