Hello Frank
This is from hash.txt
Regards MAurizio
Examples:
*
* LOCAL hHash := {=>} // Builds an empty hash
* LOCAL hAnother := { 'key a' => 'first value', 12 => { 'a', 'b', 'c'} }
*
* ---------------------------------------------------------------------
* * NOTE: Up to date, { => } construct was used by TAssociativeArray()
* pseudo object declaration. Most of the TAssociativeArray() system
* has been emulated in hashes, so older program should not need
to
* use it, but if you find any incompatibility in using older program,
* the inclusion of "assocarr.ch" file will remap {=>} to an
* associative array class.
* ----------------------------------------------------------------------
//-----------------------------------------------------------------------------------
This is a typical usage of the colon operator:
*
* LOCAL hHash := { 1 => 10, 2 => 20 }
*
* hHash:NewKey := 'newval'
* ? hHash:NewKey // newval
*
* hHash:NewKey := 15
* ? hHash:NewKey // 15
*
* ? hHash['NEWKEY' ] // 15
* HSetCaseMatch( hHash, .F.)
* ? hHash[ 'newkey' ] // 15
*
* ? hHash:unexisting // BOUND ERROR
*
*
* A program written using only the ':' operator has not to care about
* hash case match mode.