get date and time from cursor

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Nov 19 16:26:17 CST 2003


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

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list