realbasic-plugins
[Top] [All Lists]

Re: text encodings of database strings

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: text encodings of database strings
From: Marco Bambini <marco at sqlabs dot net>
Date: Tue, 15 Feb 2005 17:25:30 +0100
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <3396e7e205021507595bf39c1b at mail dot gmail dot com> <a06200710be37cfac4750 at [10 dot 10 dot 13 dot 4]>

On Feb 15, 2005, at 5:13 PM, Joseph J. Strout wrote:

So, stop doing that. :) You get to define what data type you're returning; you need to return dbTypeREALstring. For example:

        static REALstring strVal = nil;
        if (strVal) REALUnlockString( strVal );
        strVal = NewREALstring( fieldVal.GetString() );
        if (type) *type = dbTypeREALstring;
        if (length) *length = sizeof(REALstring);
        if (value) *value = (Ptr) &strVal;

Best,
- Joe

Any version of REALbasic supports this or it is an RB 5.x only feature?

Thanks,
Marco Bambini
SQLabs.net

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