FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Make hash work with colon
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Make hash work with colon
Posted: Sat Sep 01, 2018 08:03 PM

If I create a hash as follows:

Local hHash := Hash()
HSetAACompatibility( hHash, .t. )
HSetCaseMatch( hHash, .f. )

hHash["lBoolean"] := .t.
hHash["cString"] := "My String"

In my program I have to reference it as:

?hHash["lBoolean"]
?hHash["cString"]

How do you make it be referenced as:

?hHash:lBoolean
?hHash:cString

Thanks,

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Make hash work with colon
Posted: Sun Sep 02, 2018 07:53 PM

Ok, Nevermind, I found the answer in a post I posted in 2015.

Sorry guys, it's my age.

Add the line:

include "xHb.ch"

Thanks,

Thanks,

Byron Hopp

Matrix Computer Services

Continue the discussion