On Monday 29 September 2008 07:45:03 pm WenSheng wrote:
> Hi!!
>
> I'm user of xHarbour,
> I hope can trans to harbour,
> but use many hash(),
> somebody can help me how to use is at harbour ?

Sure WenSheng,

You may try first to include the file "hbcompat.ch" (under 
the "harbour/contrib/xhb" dir) in your sources in order to deal with the 
differ naming of hash functions, here is an extract regarding that:

   /* Hash item functions */
   #xtranslate HASH([<x,...>])         => hb_HASH(<x>)
   #xtranslate HHASKEY([<x,...>])      => hb_HHASKEY(<x>)
   #xtranslate HGETPOS([<x,...>])      => hb_HPOS(<x>)   
   #xtranslate HGET([<x,...>])         => hb_HGET(<x>)   
   #xtranslate HSET([<x,...>])         => hb_HSET(<x>)   
   #xtranslate HDEL([<x,...>])         => hb_HDEL(<x>)   
   #xtranslate HGETKEYAT([<x,...>])    => hb_HKEYAT(<x>) 
   #xtranslate HGETVALUEAT([<x,...>])  => hb_HVALUEAT(<x>)
   #xtranslate HSETVALUEAT([<x,...>])  => hb_HVALUEAT(<x>)
   #xtranslate HGETPAIRAT([<x,...>])   => hb_HPAIRAT(<x>) 
   #xtranslate HDELAT([<x,...>])       => hb_HDELAT(<x>)  
   #xtranslate HGETKEYS([<x,...>])     => hb_HKEYS(<x>)   
   #xtranslate HGETVALUES([<x,...>])   => hb_HVALUES(<x>) 
   #xtranslate HFILL([<x,...>])        => hb_HFILL(<x>)   
   #xtranslate HCLONE([<x,...>])       => hb_HCLONE(<x>)  
   #xtranslate HCOPY([<x,...>])        => hb_HCOPY(<x>)   
   #xtranslate HMERGE([<x,...>])       => hb_HMERGE(<x>)  
   #xtranslate HEVAL([<x,...>])        => hb_HEVAL(<x>)   
   #xtranslate HSCAN([<x,...>])        => hb_HSCAN(<x>)   
   #xtranslate HSETCASEMATCH([<x,...>])=> hb_HSETCASEMATCH(<x>)
   #xtranslate HGETCASEMATCH([<x,...>])=> hb_HCASEMATCH(<x>)   
   #xtranslate HSETAUTOADD([<x,...>])  => hb_HSETAUTOADD(<x>)  
   #xtranslate HGETAUTOADD([<x,...>])  => hb_HAUTOADD(<x>)     
   #xtranslate HALLOCATE([<x,...>])    => hb_HALLOCATE(<x>)    
   #xtranslate HDEFAULT([<x,...>])     => hb_HDEFAULT(<x>)     



best regards

Teo
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to