Subject Checking Parameters Value
Author Yagi
Hi,

How to check if Params for Query have values?

I did something like this

for(int i = 0; i < ibqRaport->Params->ColumnCount; i++)
{
if(ibqRaport->Params->Columns[i]->IsNull)
{
Application->MessageBox(AnsiString("Give me value of param " +
ibqRaport->Params->Columns[i]->FieldName + ".").c_str(),
Application->Title.c_str(), MB_OK | MB_ICONEXCLAMATION);
Abort();
}
}

but ibqRaport->Params->Columns[i]->IsNull is always true.
(Query is prepared).

What's wrong with this?

Regards

Yagi