get date and time from cursor

Arthur Clemens aclemens at xs4all.nl
Wed Nov 19 15:41:40 CST 2003


On 19-nov-03, at 15:26, Ruslan Zasukhin wrote:

> on 11/19/03 4:16 PM, Arthur Clemens at aclemens at xs4all.nl wrote:
>
> Hi Arthur,
>
>> I've seen there is a VDK_DateTime. Is there a way to get date AND time
>> from a cursor after a sqlSelect?
>
> Yes of course.
>
>> A function like GetDateTime( ushort inIndex, long& outYear, ushort&
>> outMonth, ushort& outDay, ushort& outHour, ushort& outMinute, ushort&
>> outSecond) would be nice.
>
>> Also support for milliseconds would be welcome for me.
>
> You need at first obtain VDK_DateField from cursor
>
>    pDateTimefld = curs->Get_DateTimeField( "name" );
>
> Now you can ask GetDateTime() from field

I can't find the method GetDateTime(). Do you mean I should ask 
pDateTimefId.GetDate() and pDateTimefId.GetTime() ?

Arthur



More information about the Valentina mailing list