realbasic-nug
[Top] [All Lists]

Re: DatabaseField questions

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: DatabaseField questions
From: Dr Gerard Hammond <realbasic at macsos dot com dot au>
Date: Thu, 31 Aug 2006 06:45:51 +1000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
At 1:33 PM -0400 30/8/06, Charles Yeomans wrote:
There appears to be a DatabaseField.NativeValue property omitted from the documentation. What is it?

And there is an function DatabaseField.Operator_Convert() as Date. What does it mean to convert a DatabaseField to a Date?

Charles Yeomans

Hi Charles,

It gives the bytes as returned by the plugin without being converted, encoded etc.
It used to be the only way to get a sensible date from an ODBC cursor.
When converting to the bits to Hex or ASCII, you need to watch the endianess of the OS that you are running on and do some byte swapping.

I have found that with newer plugins DatabaseField.NativeValue is hardly ever needed.
--

Cheers,

Dr Gerard Hammond
MacSOS Solutions
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>