32 |
|
|
33 |
|
uses |
34 |
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, |
35 |
< |
ExtCtrls, StdCtrls, IBServices; |
35 |
> |
ExtCtrls, StdCtrls, IBServices, IB; |
36 |
|
|
37 |
|
type |
38 |
|
|
139 |
|
end; |
140 |
|
tempService.Params.Assign(ServiceParams.Lines); |
141 |
|
tempService.LoginPrompt := true; |
142 |
< |
tempService.Active := true; |
143 |
< |
ShowMessage('Successful Connection'); |
144 |
< |
tempService.Active := false; |
142 |
> |
try |
143 |
> |
tempService.Active := true; |
144 |
> |
ShowMessage('Successful Connection'); |
145 |
> |
tempService.Active := false; |
146 |
> |
except on E: Exception do |
147 |
> |
ShowMessage(E.Message) |
148 |
> |
end; |
149 |
|
finally |
150 |
|
tempService.Free; |
151 |
|
Test.Enabled := true; |
248 |
|
|
249 |
|
|
250 |
|
end. |
247 |
– |
|