C++ example
Posted: Thu 21 Jul 2011 15:31
Looking for a sample program in c++. tired to convert delphi samples but keep getting errors. I'm looking to create the object from the code
Discussion forums for open issues and questions concerning database tools, data access components and developer tools from Devart
https://forums.devart.com/
Code: Select all
TUniConnection *con;Code: Select all
void __fastcall myForm::myFunc(void)
{
TUniQuery *q = new TUniQuery(NULL);
q->Connection = con; // important thing ;)
q->SQL->Text = "SELECT * FROM example_table;";
q->Open();
// do your stuff, for example:
ShowMessage(q->FieldByName("your_field")->AsString);
delete q; // always remember to free this object if U have finished
}