TimeStamp
Posted: Fri 30 Dec 2005 07:29
Do you know how to collect the value in a TimeStamp field?
My intention is to use this value to check whether another user has updated the field whilst I have been reviewing it - and then I go to make my update.
My TimeStamp field is called Stamp.
I could not find a Delphi type to copy it into directly, so I tried to convert it to a DateTime with this code:
myDateTime:=SQLTimeStampToDateTime(MSQuery1.FieldByName('Stamp').AsSQLTimeStamp);
This returns the error: "Cannot access field Stamp as type SQLTimeStamp".
Any help would be appreciated.
Thanks,
Steve.
My intention is to use this value to check whether another user has updated the field whilst I have been reviewing it - and then I go to make my update.
My TimeStamp field is called Stamp.
I could not find a Delphi type to copy it into directly, so I tried to convert it to a DateTime with this code:
myDateTime:=SQLTimeStampToDateTime(MSQuery1.FieldByName('Stamp').AsSQLTimeStamp);
This returns the error: "Cannot access field Stamp as type SQLTimeStamp".
Any help would be appreciated.
Thanks,
Steve.