Subject | RE: [IBO] Checking Parameters Value |
---|---|
Author | Nico Callewaert |
Post date | 2001-03-29T13:35Z |
In Delphi, I do it like this :
if ibqRaport.Params [I].AsString = '' then ........
Nico Callewaert
-----Oorspronkelijk bericht-----
Van: Yagi [mailto:yagi@...]
Verzonden: donderdag 29 maart 2001 15:22
Aan: IBObjects
Onderwerp: [IBO] Checking Parameters Value
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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
if ibqRaport.Params [I].AsString = '' then ........
Nico Callewaert
-----Oorspronkelijk bericht-----
Van: Yagi [mailto:yagi@...]
Verzonden: donderdag 29 maart 2001 15:22
Aan: IBObjects
Onderwerp: [IBO] Checking Parameters Value
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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/