FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to create a ArrayList or HashTable in FWh
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
How to create a ArrayList or HashTable in FWh
Posted: Mon Mar 02, 2009 08:17 AM

hi,
i wand to store a object(DataTable) in a Collection with tag .can some one help me.
Regards,
Sajith

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: How to create a ArrayList or HashTable in FWh
Posted: Mon Mar 02, 2009 09:01 AM

Sajith,

in xHarbour there are Hash functions available.
See <your_xharbour_installation>\tests\hash.prg for a sample.

kind regards

Stefan
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
Re: How to create a ArrayList or HashTable in FWh
Posted: Mon Mar 02, 2009 09:57 AM

Stefan,
Many thanks for ur reply,Plz send a sample to insert a object into ArrayList/HashTable with a tag.
Regards,
Sajith

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: How to create a ArrayList or HashTable in FWh
Posted: Mon Mar 02, 2009 11:29 AM
Sajith,

Code (fw): Select all Collapse
hHash := Hash () // create hash
HSet (hHash, <xKey>, <xValue>) //add a value and a key, <xValue> can also be an object
kind regards

Stefan
Posts: 110
Joined: Wed Feb 18, 2009 09:58 AM
Re: How to create a ArrayList or HashTable in FWh
Posted: Mon Mar 02, 2009 01:38 PM

manymany thanks Stefan this is the code that iam waiting for :D
Regards,
Sajith

Continue the discussion