| To: | REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: text encodings of database strings |
| From: | Will Leshner <will dot leshner at gmail dot com> |
| Date: | Tue, 15 Feb 2005 09:04:08 -0800 |
| Delivered-to: | realbasic-plugins at lists dot realsoftware dot com |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=SKlNUWO1LzNoxpi7MFQKTMXpvCK62DaA5QrBgUWCiNPdUbfA1lwLKPoyKHNAllp4iwDZ/1XWv4gYVLWTclRlY4rw3TjsQQJm9KvtD6AM531JlufHROvRbpvTom3hPdXoLzgda7Uq3s+J6THgq1EOlshS39DVWSUXpthEyUBUyXE= |
| References: | <3396e7e205021507595bf39c1b at mail dot gmail dot com> <a06200710be37cfac4750 at 10 dot 10 dot 13 dot 4> |
On Tue, 15 Feb 2005 10:13:41 -0600, Joseph J. Strout <joe at realsoftware dot com> 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; OMG!. That is, like, so cool. Thanks! -- REALbasic database options: http://sqlabs.net REALbasic news and tips: http://rbgazette.com KidzMail & KidzLog: http://haranbanjo.com _______________________________________________ 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> |
|---|---|---|
| ||
| Previous by Date: | Re: text encodings of database strings, Joseph J. Strout |
|---|---|
| Next by Date: | How to make folderitem from UTF16 path string on Windows?, Christian Schmitz |
| Previous by Thread: | Re: text encodings of database strings, Joseph J. Strout |
| Next by Thread: | How to make folderitem from UTF16 path string on Windows?, Christian Schmitz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |