realbasic-nug
[Top] [All Lists]

Re: DatabaseField questions

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: DatabaseField questions
From: Charles Yeomans <charles at declareSub dot com>
Date: Wed, 30 Aug 2006 16:50:03 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <p06230914c11ba97de6e9 at [10 dot 1 dot 1 dot 2]>

On Aug 30, 2006, at 4:45 PM, Dr Gerard Hammond wrote:

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.
--

Aha.  Thanks.

Charles Yeomans

_______________________________________________
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>