This is Jeff's workaround for the TTimeField:
>Yes, change TIBCustomDataSet.SetInternalSQLParams to >SQL_TYPE_TIME: >begin >ts.Date := 1; >ts.Time := PInt(data)^; >Qry.Params[i].AsTime := TimeStampToDateTime(ts); >end; >In all previous versions of Delphi TimeStampToDateTime would allow a Date of 0, >D6 it raises a conversion error. Statically link in the change. The static link is the problem. Since it is impossible (and a violation of your license agreement) to re-build ibxpress60.bpl, you will find that you CANNOT SET ANY VALUE in a TTimeField using IBXPress with packages under Delphi 6. Workarounds? 1) Let the server set the time by using default values...(works only if you are inserting 'NOW') 2) Redesign your app so that is statically linked (impossible if you use plug-ins) 3) Wait until after BorCon. Jeff has promised a patch. (best option, but not for the impatient or for those with deadlines) 4) Stick with Delphi 5 (works)
|
- D6 Timestamp Error: was [DUG]: Delphi 5 & 6... Staff at Belding
- Trevor Jones