Make hash work with colon

Make hash work with colon

Postby byron.hopp » Sat Sep 01, 2018 8: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
byron.hopp
 
Posts: 386
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Make hash work with colon

Postby byron.hopp » Sun Sep 02, 2018 7: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
byron.hopp
 
Posts: 386
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 40 guests