Advertisement
Guest User

Untitled

a guest
Aug 15th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.63 KB | None | 0 0
  1. //http://pastebin.com/NMBR17nR
  2. procedure TForm6.BitBtn1Click(Sender: TObject);
  3. begin
  4.   with TIB_Cursor.Create(nil) do //Criando o Cursor
  5.     begin
  6.       try
  7.         IB_Connection := Conexao;
  8.         SQL.Text      := 'select first 2 * from usuarios order by id';
  9.         Open; //Aqui o SQL aparece na tabela MON$STATEMENTS do firebird
  10.         while (not eof) do
  11.           begin
  12.             ShowMessage(FieldByName('Nome').AsString);
  13.             Next;
  14.           end;
  15.       finally
  16.         Free; //Destruindo o Cursor - //Aqui o SQL desaparece na tabela MON$STATEMENTS do firebird
  17.       end;
  18.     end;
  19.   ShowMessage('Aqui');
  20. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement