DateTimes, LLongs and other 8-byte fields.

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Nov 17 23:12:15 CST 2005


On 11/17/05 7:53 PM, "Ed Kleban" <Ed at Kleban.com> wrote:

>>> Fair enough, especially since I expect there's some simple way to do
>>> this
>>> that's not apparent to me.  Possibly by mapping a Memory block pointer
>>> to
>>> the VField or something.  I'll run this by Thomas Templeton or the NUG
>>> list
>>> on RB.  Or I see Charles Yeoman is on this list.  He'll likely know.
>> 
>> It's not hard to get the four-byte pieces. Take the string returned
>> from a LLong or ULLong field, stick it into an eight-byte MemoryBlock,
>> then read out the pieces using MemoryBlock.Long.
> 
> Ah!  So the string returned by GetString is a binary string. Doh!  Of course
> it is. I was thinking it would be a printable numeric for some stupid
> reason. That's the problem with having at least 5 overloaded uses for the
> term "string".

Wait guys.

    longFld.GetString()

Return normal string. Not binary


> Ok, this is the clue I was missing, and the exact MemoryBlock usage details
> I knew had to exist but wasn't too clueful about.  Thanks Charles!
>  

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list