Difference between revisions of "TFPGMap"
From Free Pascal wiki
Jump to navigationJump to search (copied code snipit frm forum) |
(see also) |
||
Line 20: | Line 20: | ||
end; | end; | ||
end; | end; | ||
+ | |||
+ | ==See Also== | ||
+ | |||
+ | * https://www.freepascal.org/docs-html/current/rtl/fgl/tfpgmap.html |
Revision as of 07:05, 14 August 2021
TFpGMap is part of the Free Generics Library
Here is an example provided by forum user Remy Lebeau
uses ..., fgl; var Dict: TFPGMap<string, integer>; Value: Integer; begin Dict := TFPGMap<string, integer>.Create; try Dict.Add('VarName', 99); ... Value := Dict['VarName']; ... finally Dict.Free; end; end;