Changeset 172 for trunk/Forms
- Timestamp:
- Jun 14, 2024, 9:41:40 PM (5 months ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormImport.lfm
r168 r172 12 12 OnDestroy = FormDestroy 13 13 OnShow = FormShow 14 LCLVersion = ' 2.2.6.0'14 LCLVersion = '3.0.0.3' 15 15 object ButtonCancel: TButton 16 16 Left = 578 … … 32 32 Caption = 'Import' 33 33 ModalResult = 1 34 OnClick = ButtonImportClick35 34 ParentFont = False 36 35 TabOrder = 1 36 OnClick = ButtonImportClick 37 37 end 38 38 object ScrollBox1: TScrollBox … … 61 61 Width = 225 62 62 ItemHeight = 0 63 OnChange = ComboBoxInputFormatChange64 63 ReadOnly = True 65 64 Style = csDropDownList 66 65 TabOrder = 0 66 OnChange = ComboBoxInputFormatChange 67 67 end 68 68 object Label2: TLabel … … 80 80 Width = 464 81 81 Anchors = [akTop, akLeft, akRight] 82 TabOrder = 1 82 83 OnChange = EditInputFileChange 83 TabOrder = 184 84 end 85 85 object ButtonBrowse: TButton … … 90 90 Anchors = [akTop, akRight] 91 91 Caption = 'Browse' 92 TabOrder = 2 92 93 OnClick = ButtonBrowseClick 93 TabOrder = 294 94 end 95 95 object ListView1: TListView -
trunk/Forms/FormImport.pas
r170 r172 136 136 if not FileExists(EditInputFile.Text) then Exit; 137 137 138 Table.SetInput(TableFormat, LoadFileToStr(EditInputFile.Text)); 139 Table.Title := ExtractFileNameWithoutExt(EditInputFile.Text); 138 try 139 Table.SetInput(TableFormat, LoadFileToStr(EditInputFile.Text)); 140 Table.Title := ExtractFileNameWithoutExt(EditInputFile.Text); 141 except 142 // It may fail due to invalid format 143 end; 140 144 end; 141 145
Note:
See TracChangeset
for help on using the changeset viewer.