diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2014-08-09 17:59:36 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2014-08-09 18:06:25 +0100 |
commit | 27f18ffb0223c1f8186e9614083b2bfcb6c4d261 (patch) | |
tree | 966c2a22ebdd27891fb62f1c36c5426bef3ed6b9 /examples/apps/ide | |
parent | 075447ee3fe5e6fb4cf648a1cf0d0244244714ae (diff) | |
download | fpGUI-27f18ffb0223c1f8186e9614083b2bfcb6c4d261.tar.xz |
maximus: New method to remove an item from the UnitList
Diffstat (limited to 'examples/apps/ide')
-rw-r--r-- | examples/apps/ide/src/unitlist.pas | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/apps/ide/src/unitlist.pas b/examples/apps/ide/src/unitlist.pas index 37e9a9cd..e6c09a69 100644 --- a/examples/apps/ide/src/unitlist.pas +++ b/examples/apps/ide/src/unitlist.pas @@ -50,6 +50,7 @@ type function FindByName(const AUnitName: TfpgString): TUnit; function FileExists(const AFilename: TfpgString): Boolean; function AddFileName(const AFilename: TfpgString): TUnit; + function Remove(AUnit: TUnit): integer; procedure Add(NewUnit: TUnit); procedure Clear; procedure Delete(AIndex: integer); @@ -145,6 +146,11 @@ begin end; end; +function TUnitList.Remove(AUnit: TUnit): integer; +begin + Result := FList.Remove(AUnit); +end; + procedure TUnitList.Add(NewUnit: TUnit); var l: Integer; |