Changeset 339
- Timestamp:
- Feb 27, 2010, 2:57:14 PM (15 years ago)
- Location:
- tools/dbc_export
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/dbc_export/DBCExport.lpi
r338 r339 35 35 <IsPartOfProject Value="True"/> 36 36 <UnitName Value="DBCExport"/> 37 <CursorPos X=" 3" Y="107"/>38 <TopLine Value=" 105"/>37 <CursorPos X="1" Y="35"/> 38 <TopLine Value="22"/> 39 39 <EditorIndex Value="0"/> 40 <UsageCount Value="3 1"/>40 <UsageCount Value="39"/> 41 41 <Loaded Value="True"/> 42 42 <SyntaxHighlighter Value="Delphi"/> … … 47 47 <CursorPos X="1" Y="1"/> 48 48 <TopLine Value="1"/> 49 <UsageCount Value="2 9"/>49 <UsageCount Value="28"/> 50 50 <SyntaxHighlighter Value="Delphi"/> 51 51 </Unit1> … … 54 54 <CursorPos X="14" Y="719"/> 55 55 <TopLine Value="703"/> 56 <UsageCount Value="1 5"/>56 <UsageCount Value="14"/> 57 57 </Unit2> 58 58 <Unit3> … … 60 60 <CursorPos X="23" Y="36"/> 61 61 <TopLine Value="33"/> 62 <UsageCount Value="1 4"/>62 <UsageCount Value="13"/> 63 63 </Unit3> 64 64 <Unit4> … … 67 67 <CursorPos X="1" Y="1"/> 68 68 <TopLine Value="1"/> 69 <UsageCount Value="2 9"/>69 <UsageCount Value="28"/> 70 70 <SyntaxHighlighter Value="Delphi"/> 71 71 </Unit4> … … 74 74 <CursorPos X="24" Y="6"/> 75 75 <TopLine Value="1"/> 76 <UsageCount Value=" 9"/>76 <UsageCount Value="8"/> 77 77 <SyntaxHighlighter Value="None"/> 78 78 </Unit5> … … 82 82 <CursorPos X="3" Y="166"/> 83 83 <TopLine Value="164"/> 84 <UsageCount Value=" 10"/>84 <UsageCount Value="9"/> 85 85 </Unit6> 86 86 <Unit7> … … 88 88 <CursorPos X="22" Y="196"/> 89 89 <TopLine Value="184"/> 90 <UsageCount Value="1 2"/>90 <UsageCount Value="11"/> 91 91 </Unit7> 92 92 <Unit8> … … 95 95 <CursorPos X="12" Y="100"/> 96 96 <TopLine Value="66"/> 97 <UsageCount Value="1 2"/>97 <UsageCount Value="11"/> 98 98 </Unit8> 99 99 <Unit9> … … 101 101 <CursorPos X="1" Y="1"/> 102 102 <TopLine Value="51"/> 103 <UsageCount Value="1 2"/>103 <UsageCount Value="11"/> 104 104 </Unit9> 105 105 <Unit10> … … 108 108 <CursorPos X="9" Y="79"/> 109 109 <TopLine Value="51"/> 110 <UsageCount Value="1 1"/>110 <UsageCount Value="10"/> 111 111 </Unit10> 112 112 <Unit11> … … 117 117 <TopLine Value="71"/> 118 118 <EditorIndex Value="4"/> 119 <UsageCount Value=" 22"/>119 <UsageCount Value="30"/> 120 120 <Loaded Value="True"/> 121 121 <SyntaxHighlighter Value="Delphi"/> … … 128 128 <TopLine Value="60"/> 129 129 <EditorIndex Value="2"/> 130 <UsageCount Value=" 22"/>130 <UsageCount Value="30"/> 131 131 <Loaded Value="True"/> 132 132 <SyntaxHighlighter Value="Delphi"/> … … 138 138 <TopLine Value="1"/> 139 139 <EditorIndex Value="3"/> 140 <UsageCount Value=" 22"/>140 <UsageCount Value="30"/> 141 141 <Loaded Value="True"/> 142 142 <SyntaxHighlighter Value="None"/> … … 148 148 <TopLine Value="47"/> 149 149 <EditorIndex Value="1"/> 150 <UsageCount Value="1 1"/>150 <UsageCount Value="15"/> 151 151 <Loaded Value="True"/> 152 152 </Unit14> -
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.