Lazarus

Programming => Databases => Topic started by: olecr on July 20, 2006, 04:19:33 pm

Title: Problems with dateFields
Post by: olecr on July 20, 2006, 04:19:33 pm
Someone knows how to get the lazarus working with datefields correctly.
I'm getting always strage values when I try to get the dates from Db.... things like "22/12/21730 00:00"  .... Whats going on?

Lazarus 0.9.16 beta
Firebird 1.5
UIB2 + AlexDataSet
Title: RE: Problems with dateFields
Post by: matthijs on July 23, 2006, 08:21:17 pm
I do not know the AlexDataSet, but to me it looks like a bug in the conversion of the date / time information to a string. When I use sqldb components I see dates are displayed all right (version 0.9.17)

So I guess the problem is in the used dataset.
Title: RE: Problems with dateFields
Post by: Vincent Snijders on July 24, 2006, 09:13:46 am
It could also be caused by problems with fpc 2.0.2, in which datefield in dataset are not handled correctly always, afaik.
Title: Problems with dateFields
Post by: olecr on August 12, 2006, 01:07:08 pm
Realy the problem was in the alexdataset. There was some lines marked to dont work.
Lines like that

{$IFDEF FPC}

After I dismarked then... all is working good.
TinyPortal © 2005-2018