Page 1 of 1

How to open TZStoredProc?

Posted: 30.05.2008, 00:50
by nostradumbass
Zeos 6.6.2-RC / Firebird 2.1.1.17910 embedded / D2007

What is the proper way to open a TZStoredProc which has a SELECT statement ?

Active := True
or
ExecSQL
or
ExecProc
or
Open ???

TDBGrid is linked to TDataSource which is linked to TZStoredProc.

Upon executing the Open statement, I get the field headings in the DBGrid, but there is no data in there.

But if I set Active = True in the designer, then I can see the data in the DBGrid.

What is the problem?


Thanks in advance,
ND

Posted: 30.05.2008, 01:10
by nostradumbass
I fixed this, by putting the database file in the same directory as the application _and_ doing a rebuild on the project.

Thanks.

-ND