Changeset 69 for branches/Transpascal/UProject.pas
- Timestamp:
- Oct 19, 2010, 7:19:53 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Transpascal/UProject.pas
r66 r69 6 6 7 7 uses 8 Classes, SysUtils, Contnrs, Dialogs, DOM, XMLWrite, XMLRead ;8 Classes, SysUtils, Contnrs, Dialogs, DOM, XMLWrite, XMLRead, FileUtil; 9 9 10 10 type … … 106 106 else NamePart := FileName; 107 107 I := 0; 108 while (I < Items.Count) and ( TProjectNode(Items[I]).Name<> NamePart) do Inc(I);108 while (I < Items.Count) and (ExtractFileNameOnly(TProjectNode(Items[I]).Name) <> NamePart) do Inc(I); 109 109 if I < Items.Count then begin 110 if TProjectNode(Items[I]) is TProjectFile then Result := TProjectFile(Items[I]) 110 if TProjectNode(Items[I]) is TProjectFile then 111 Result := TProjectFile(Items[I]) 111 112 else begin 112 113 Delete(FileName, 1, Length(FileName) + 1);
Note:
See TracChangeset
for help on using the changeset viewer.