Ratio: 0 / 5

Inicio desactivadoInicio desactivadoInicio desactivadoInicio desactivadoInicio desactivado
 

hb_HAutoAdd()

 

Sets the 'auto add' flag for the hash table

 

Syntax

 

hb_HAutoAdd( <hsTable>, [<lFlag>] ) -> <lPreviousFlag>

 

Argument(s)

 

<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

 

Example(s)

 

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. )

 

Status

 

Ready

 

Compliance

This is Harbour specific