firemonkey sql querry programatically
Posted: Tue 31 Jul 2012 15:48
Hi,
When creating a query programatically like this:
TMyQuery* myQuery = new TMyQuery(this);
myQuery->Connection = MyConnection1;
UnicodeString str;
str = "SELECT id, first_name, city, country, visits, phone, VIP, room_nr, email FROM customers ";
myQuery->SQL->Clear();
myQuery->SQL->Add(str);
myQuery->Execute();
TFields* fields =myQuery->Fields;
int cnt = fields->Count;
The maximum number of fields is always 6. We need more then 6 fields. Can you reproduce the bug and give us a solution?
Thanks.
When creating a query programatically like this:
TMyQuery* myQuery = new TMyQuery(this);
myQuery->Connection = MyConnection1;
UnicodeString str;
str = "SELECT id, first_name, city, country, visits, phone, VIP, room_nr, email FROM customers ";
myQuery->SQL->Clear();
myQuery->SQL->Add(str);
myQuery->Execute();
TFields* fields =myQuery->Fields;
int cnt = fields->Count;
The maximum number of fields is always 6. We need more then 6 fields. Can you reproduce the bug and give us a solution?
Thanks.