Changeset 45 for trunk/UConfigSample.pas
- Timestamp:
- Dec 31, 2010, 9:56:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UConfigSample.pas
r27 r45 8 8 Classes, SysUtils; 9 9 10 const 11 WebServerAddress: string = 'http://localhost/'; 12 DatabaseHostname: string = 'localhost'; 13 DatabaseDatabase: string = 'web'; 14 DatabaseUserName: string = 'user'; 15 DatabasePassword: string = 'password'; 16 ConfigFormatHTML: Boolean = False; 17 ConfigStyle: string = 'Basic'; 18 ConfigBaseURL: string = 'http://localhost'; 10 type 11 TConfig = record 12 WebServerAddress: string; 13 DatabaseHostname: string; 14 DatabaseDatabase: string; 15 DatabaseUserName: string; 16 DatabasePassword: string; 17 FormatHTML: Boolean; 18 Style: string; 19 BaseURL: string; 20 ShowException: Boolean; 21 end; 22 23 var 24 Config: TConfig; 25 19 26 20 27 implementation 21 28 29 initialization 30 31 with Config do begin 32 WebServerAddress := 'http://localhost/'; 33 DatabaseHostname := 'localhost'; 34 DatabaseDatabase := 'web'; 35 DatabaseUserName := 'user'; 36 DatabasePassword := 'password'; 37 FormatHTML := False; 38 Style := 'Basic'; 39 BaseURL := 'http://localhost'; 40 ShowException := False; 41 end; 42 22 43 end. 23 44
Note:
See TracChangeset
for help on using the changeset viewer.