Changeset 339 for tools/dbc_export/DBCExport.pas
- Timestamp:
- Feb 27, 2010, 2:57:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/dbc_export/DBCExport.pas
r338 r339 14 14 { TDBCExport } 15 15 TDBCExport = class(TCustomApplication) 16 private 17 procedure ParseParameters; 16 18 protected 17 19 procedure DoRun; override; … … 31 33 { TDBCExport } 32 34 33 procedure TDBCExport. DoRun;35 procedure TDBCExport.ParseParameters; 34 36 begin 35 // Parse parameters36 37 if HasOption('h', 'help') then begin 37 38 WriteHelp; … … 68 69 Database.Hostname := GetOptionValue('t', 'host'); 69 70 end else Database.Hostname := 'localhost'; 71 end; 70 72 71 73 procedure TDBCExport.DoRun; 74 begin 75 ParseParameters; 72 76 ShowDBC; 73 77 … … 80 84 inherited Create(TheOwner); 81 85 StopOnException := True; 82 Database := TSqlDatabase.Create; ;86 Database := TSqlDatabase.Create; 83 87 end; 84 88 … … 129 133 end; 130 134 131 WriteLn('Save');132 135 SaveToFile(NewDBCFileName); 133 136 end else WriteLn('File ' + DBCFileName + ' not exists.'); … … 139 142 Application: TDBCExport; 140 143 141 {$IFDEF WINDOWS}{$R project1.rc}{$ENDIF}144 {$IFDEF WINDOWS}{$R DBCExport.rc}{$ENDIF} 142 145 143 146 {$R DBCExport.res}
Note:
See TracChangeset
for help on using the changeset viewer.