Sign in Join
FPDoc Onlineexperiment

TFPGMapObject.TryGetData function

Member of TFPGMapObjectpublicIn unit fgl

Find data or return default.

Declaration

pascal
function TryGetData(const AKey: TKey; out AData: TData): Boolean

Description

TryGetData will search the map for AKey and return True or False depending on whether the value with the given key was found. If the key was found, the associated value is returned in AData, if it is not found a default value (using Default) is returned.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.