On page 430 of the course book, line 17 of the procedure TfrmAcquisition...
When I type in the CommandText := ctQuery the error message is displayed as 'ctQuery is an undeclared identifier'; Can somebody help.
I am having the same problem. I cannot see any book information from my Acquisitions form either, but I can see the data in the other forms (Member and Book tables). Please can someone help if they have had the same problem or know how to correct it.
Hi, Im having the same problem and I can't find anyway to fix it.
Im on the same page and was wondering if anyone ever found an answer?
dmoLibrary.cdsBook.Close;//close before making changes//setting up the SQLDataSet as a query
dmoLibrary.sdsBook.CommandText:=';SELECT * from librarybook ORDER BY BookTitle';;
Ex16.2 step 4 is giving me a problem.
dmoLibrary.sdsBook.CommandType := ctQuery;
There is red line under only the ctQuery part which indicates it does not recognise it. It does recognise the first part (dmoLibrary.sdsBook.CommandType).
It gives an error: Undeclared indentifier 'ctQuery' at line 57 (57:35)
[DCC Error] AcquireBooku.pas(57): E2003 Undeclared identifier: 'ctQuery'
Ex16.2 step 5, 432 is fine
dmoLibrary.sdsBook.CommandType := ctTable;
The only difference is the form with which these commands are associated. It does not matter (as expected) whether it is ctTable or ctQuery. Therefore I have deduced something must be wrong with the form, TfrmAcquisition, but I cannot see where. Any suggestions were I can look for problems?