Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- procedure TMainForm.ConnectItemClick( Sender: TObject );
- begin
- if IBConnection.Connected then begin
- if not ( MessageDlg( 'Connection seems established, do you want to reconnect?',
- mtWarning, mbYesNo, 0 ) = mrYes ) then Exit;
- IBConnection.Close( True );
- end;
- IBConnection.Open();
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement