HB_HAUTOADD()
Sets the ‘auto add’ flag for the hash table
Syntax
HB_HAUTOADD( <hsTable>, [<lFlag>] ) -> <lPreviousFlag>
Arguments
<hsTable> a hash table, created by HB_HASH()
<lFlag> a logical value indicating to turn on or off the ‘auto add’ flag of the hash table
Returns
The previous value of the ‘auto add’ flag
Description
This function is equivalent to HB_HAUTOADD() but it returns the old flag value rather than the hash table
Examples
LOCAL hsTable, lFlag hsTable := { "one" => 1, "two" => 2 } // turn 'auto add' on for a new hash table, storing ol flag lFlag := hb_HAutoAdd( hsTable, .T. )
Compliance
Harbour
Seealso
HB_HSETAUTOADD()
Pingback: Harbour All Functions – H | Viva Clipper !
Pingback: Harbour Hashe Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !