Advertisement
Guest User

lazarus reconnection bug

a guest
Apr 17th, 2015
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.33 KB | None | 0 0
  1. procedure TMainForm.ConnectItemClick( Sender: TObject );
  2. begin
  3.   if IBConnection.Connected then begin
  4.     if not ( MessageDlg( 'Connection seems established, do you want to reconnect?',
  5.                           mtWarning, mbYesNo, 0 ) = mrYes ) then Exit;
  6.     IBConnection.Close( True );
  7.   end;
  8.  
  9.   IBConnection.Open();
  10. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement