ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/examples/scriptengine/unit1.lfm
Revision: 318
Committed: Thu Feb 25 12:03:26 2021 UTC (3 years, 2 months ago) by tony
File size: 3997 byte(s)
Log Message:
Update Examples for FB4

File Contents

# Content
1 object Form1: TForm1
2 Left = 413
3 Height = 402
4 Top = 367
5 Width = 773
6 Caption = 'IBX Script Example'
7 ClientHeight = 402
8 ClientWidth = 773
9 DefaultMonitor = dmPrimary
10 OnShow = FormShow
11 Position = poScreenCenter
12 LCLVersion = '2.0.11.0'
13 object Label1: TLabel
14 Left = 14
15 Height = 13
16 Top = 16
17 Width = 99
18 Caption = 'Database Name:'
19 ParentColor = False
20 end
21 object Label2: TLabel
22 Left = 14
23 Height = 13
24 Top = 56
25 Width = 36
26 Caption = 'Script'
27 ParentColor = False
28 end
29 object IBScript: TMemo
30 Left = 14
31 Height = 287
32 Top = 72
33 Width = 341
34 Anchors = [akTop, akLeft, akRight, akBottom]
35 Lines.Strings = (
36 'IBScript'
37 )
38 ScrollBars = ssAutoVertical
39 TabOrder = 0
40 end
41 object Button1: TButton
42 Left = 369
43 Height = 30
44 Top = 192
45 Width = 77
46 Action = RunScript
47 Anchors = [akTop, akRight]
48 TabOrder = 1
49 end
50 object Label3: TLabel
51 Left = 459
52 Height = 13
53 Top = 56
54 Width = 68
55 Anchors = [akTop, akRight]
56 Caption = 'Results Log'
57 ParentColor = False
58 end
59 object ResultsLog: TMemo
60 Left = 460
61 Height = 287
62 Top = 72
63 Width = 296
64 Anchors = [akTop, akRight, akBottom]
65 Lines.Strings = (
66 'ResultsLog'
67 )
68 ScrollBars = ssAutoVertical
69 TabOrder = 2
70 end
71 object ProgressBar1: TProgressBar
72 Left = 460
73 Height = 20
74 Top = 369
75 Width = 296
76 Anchors = [akRight, akBottom]
77 TabOrder = 3
78 end
79 object Button2: TButton
80 Left = 14
81 Height = 30
82 Top = 369
83 Width = 82
84 Action = LoadScript
85 Anchors = [akLeft, akBottom]
86 TabOrder = 4
87 end
88 object DBName: TLabel
89 Left = 119
90 Height = 13
91 Top = 16
92 Width = 52
93 Caption = 'DBName'
94 ParentColor = False
95 end
96 object StopOnError: TCheckBox
97 Left = 104
98 Height = 22
99 Top = 375
100 Width = 136
101 Caption = 'Stop On First Error'
102 OnChange = StopOnErrorChange
103 TabOrder = 5
104 end
105 object EchoInput: TCheckBox
106 Left = 248
107 Height = 22
108 Top = 375
109 Width = 91
110 Caption = 'Echo Input'
111 OnChange = EchoInputChange
112 TabOrder = 6
113 end
114 object IBXScript1: TIBXScript
115 Database = IBDatabase1
116 IgnoreGrants = False
117 IgnoreCreateDatabase = False
118 Transaction = IBTransaction1
119 ShowAffectedRows = False
120 ShowPerformanceStats = False
121 GetParamValue = IBXScript1GetParamValue
122 OnOutputLog = IBXScript1LogProc
123 OnErrorLog = IBXScript1LogProc
124 OnProgressEvent = IBXScript1ProgressEvent
125 OnSelectSQL = IBXScript1SelectSQL
126 Left = 24
127 Top = 104
128 end
129 object IBDatabase1: TIBDatabase
130 Connected = False
131 BeforeConnect = IBDatabase1BeforeConnect
132 CreateIfNotExists = False
133 AllowStreamedConnected = False
134 DatabaseName = 'localhost:employee'
135 Params.Strings = (
136 'lc_ctype=UTF8 '
137 'user_name=SYSDBA'
138 )
139 IdleTimer = 0
140 TraceFlags = []
141 UseDefaultSystemCodePage = False
142 Left = 24
143 Top = 156
144 end
145 object IBTransaction1: TIBTransaction
146 Active = False
147 DefaultDatabase = IBDatabase1
148 Params.Strings = (
149 'concurrency'
150 'nowait'
151 )
152 Left = 24
153 Top = 208
154 end
155 object ActionList1: TActionList
156 Left = 75
157 Top = 104
158 object LoadScript: TAction
159 Caption = 'Load Script'
160 OnExecute = LoadScriptExecute
161 end
162 object RunScript: TAction
163 Caption = 'Execute'
164 OnExecute = RunScriptExecute
165 OnUpdate = RunScriptUpdate
166 end
167 end
168 object OpenDialog1: TOpenDialog
169 Title = 'Load SQL Script'
170 DefaultExt = '.sql'
171 Filter = 'SQL FIles|*.sql|All Files|*.*'
172 Options = [ofFileMustExist, ofEnableSizing, ofViewDetail]
173 Left = 75
174 Top = 156
175 end
176 object OpenBlobDialog: TOpenDialog
177 Filter = 'All Files|*.*'
178 Options = [ofFileMustExist, ofEnableSizing, ofViewDetail]
179 Left = 75
180 Top = 208
181 end
182 object Timer1: TTimer
183 Interval = 0
184 OnTimer = Timer1Timer
185 Left = 127
186 Top = 112
187 end
188 end