Advertisement
TLama

Untitled

Mar 7th, 2014
281
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.   adStateOpen = 1;
  5.   adStateConnecting = 2;
  6.   adStateExecuting = 4;
  7.   adStateFetching = 8;
  8.  
  9. procedure InitializeWizard;
  10. var
  11.   State: Variant;
  12.   ADOConnection: Variant;
  13. begin
  14.   ADOConnection := CreateOleObject('ADODB.Connection');
  15.   State := ADOConnection.State;
  16.   if State = adStateClosed then
  17.     Msgbox('adStateClosed', mbInformation, MB_OK);
  18. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement