Subject | RE: [IBO] Persistent Fields with IB_Query |
---|---|
Author | Jason Wharton |
Post date | 2005-07-16T16:44:07Z |
> Can anyone give me a hint, how to check field names at compile time?What I will often do is manually have static column references just like
TDataset does and is all you have to do is hook into the AfterPrepare event
and manually assign the pointers to the statically declared TIB_Column
references. Then, you use those in your code just like the persistent
fields and when your statement prepares it goes through the entire list of
field assignments using FieldByName and if you have spelled one of them
wrong it will throw and error.
Jason Wharton
www.ibobjects.com