TUniQuery and OnCalcFields
Posted: Wed 07 Dec 2011 19:20
I'm porting an old app the used ADOQuerys connecting to an Oracle database. I've replaced the tADOQuery components with tUniQuery components and all works fine. Except, when an OnCalcFields event fires I get a 'Database not in insert or edit mode' exception (ADO queries did not require the data set to be in an edit state). Attempting to call the UniQuery.Edit method gives an access violation.
What is the proper way to use the OnCalcFields event of a tUniQuery?
Thanks.
What is the proper way to use the OnCalcFields event of a tUniQuery?
Thanks.