TLama

Untitled

Mar 10th, 2014
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.39 KB | None | 0 0
  1. [Code]
  2. const
  3.   adStateClosed = 0;
  4. var
  5.   ADOConnection: Variant;
  6.  
  7. procedure InitializeWizard;
  8. begin
  9.   ADOConnection := CreateOleObject('ADODB.Connection');
  10. end;
  11.  
  12. function NextButtonClick(CurPageID: Integer): Boolean;
  13. var
  14.   State: Variant;
  15. begin
  16.   Result := True;
  17.  
  18.   State := ADOConnection.State;
  19.   if State = adStateClosed then
  20.     Msgbox('adStateClosed', mbInformation, MB_OK);
  21. end;
Advertisement
Add Comment
Please, Sign In to add comment