How to create a ArrayList or HashTable in FWh

How to create a ArrayList or HashTable in FWh

Postby sajith » Mon Mar 02, 2009 8:17 am

hi,
i wand to store a object(DataTable) in a Collection with tag .can some one help me.
Regards,
Sajith
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India

Re: How to create a ArrayList or HashTable in FWh

Postby StefanHaupt » Mon Mar 02, 2009 9:01 am

Sajith,

in xHarbour there are Hash functions available.
See <your_xharbour_installation>\tests\hash.prg for a sample.
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: How to create a ArrayList or HashTable in FWh

Postby sajith » Mon Mar 02, 2009 9:57 am

Stefan,
Many thanks for ur reply,Plz send a sample to insert a object into ArrayList/HashTable with a tag.
Regards,
Sajith
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India

Re: How to create a ArrayList or HashTable in FWh

Postby StefanHaupt » Mon Mar 02, 2009 11:29 am

Sajith,

Code: Select all  Expand view
hHash := Hash () // create hash
HSet (hHash, <xKey>, <xValue>) //add a value and a key, <xValue> can also be an object
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: How to create a ArrayList or HashTable in FWh

Postby sajith » Mon Mar 02, 2009 1:38 pm

manymany thanks Stefan this is the code that iam waiting for :D
Regards,
Sajith
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 57 guests