BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to get WideString type data value from Field

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express)
View previous topic :: View next topic  
Author Message
Emmanuel
Guest





PostPosted: Fri Jul 07, 2006 10:40 pm    Post subject: How to get WideString type data value from Field Reply with quote



How to get WideString type data value from Field?
because Field->AsString will make the data currpt for different OS
How can I get the orginal Data by WideString?
Back to top
JD
Guest





PostPosted: Sat Jul 08, 2006 11:30 pm    Post subject: Re: How to get WideString type data value from Field Reply with quote



"Emmanuel" <emmanuel (AT) erphk (DOT) com> wrote:
Quote:
How to get WideString type data value from Field?
because Field->AsString will make the data currpt for different OS
How can I get the orginal Data by WideString?

From the help : DevGuide Developing database applications
Converting field values:

A TWideStringField will correctly convert using AsVariant,
AsString, AsInteger, AsFloat, AsCurrency, AsBCD, AsDateTime,
AsSQLTimeStamp, and AsBoolean.

Sounds like you haven't correctly defined the field.

~ JD
Back to top
Emmanuel
Guest





PostPosted: Sun Jul 09, 2006 8:11 pm    Post subject: Re: How to get WideString type data value from Field Reply with quote



But I am auto create the field by New Field, And in the Interbase using
Varchar Unicode, How can I create TWideStringField ?

"JD" <nospam (AT) nospam (DOT) com> 写入消息新闻:44aff9d3$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Emmanuel" <emmanuel (AT) erphk (DOT) com> wrote:
How to get WideString type data value from Field?
because Field->AsString will make the data currpt for different OS
How can I get the orginal Data by WideString?

From the help : DevGuide Developing database applications
Converting field values:

A TWideStringField will correctly convert using AsVariant,
AsString, AsInteger, AsFloat, AsCurrency, AsBCD, AsDateTime,
AsSQLTimeStamp, and AsBoolean.

Sounds like you haven't correctly defined the field.

~ JD
Back to top
Emmanuel
Guest





PostPosted: Mon Jul 10, 2006 2:43 pm    Post subject: Re: How to get WideString type data value from Field Reply with quote

I define the field is VARCHAR (30) CHARACTER SET UNICODE_FSS
COLLATE UNICODE_FSS

If I use TWideStringField , there is error : Type mismatch for field


Quote:
From the help : DevGuide Developing database applications
Converting field values:

A TWideStringField will correctly convert using AsVariant,
AsString, AsInteger, AsFloat, AsCurrency, AsBCD, AsDateTime,
AsSQLTimeStamp, and AsBoolean.

Sounds like you haven't correctly defined the field.
Back to top
Emmanuel
Guest





PostPosted: Mon Jul 10, 2006 2:46 pm    Post subject: Re: How to get WideString type data value from Field Reply with quote

I define the field is VARCHAR (30) CHARACTER SET UNICODE_FSS
COLLATE UNICODE_FSS

If I use TWideStringField , there is error : Type mismatch for field "XXX",
excpecting: WideString actual:String


"Emmanuel" <emmanuel (AT) erphk (DOT) com> 写入消息新闻:44b22084$1 (AT) newsgroups (DOT) borland.com...
Quote:
I define the field is VARCHAR (30) CHARACTER SET UNICODE_FSS
COLLATE UNICODE_FSS

If I use TWideStringField , there is error : Type mismatch for field


From the help : DevGuide Developing database applications
Converting field values:

A TWideStringField will correctly convert using AsVariant,
AsString, AsInteger, AsFloat, AsCurrency, AsBCD, AsDateTime,
AsSQLTimeStamp, and AsBoolean.

Sounds like you haven't correctly defined the field.

Back to top
Emmanuel
Guest





PostPosted: Mon Jul 10, 2006 9:47 pm    Post subject: Re: How to get WideString type data value from Field Reply with quote

HELP ME
Back to top
JD
Guest





PostPosted: Tue Jul 11, 2006 7:36 pm    Post subject: Re: How to get WideString type data value from Field Reply with quote

I searched the archives:

http://www.tamaracka.com/search.htm

and found a post by Jeff Overcash where says that IB doesn't
support widestrings (including WideStringField) but that was
from 2000. I appologize if I mislead you (works great with
ADO).

Other threads showed that individuals were indeed using
UNICODE_FSS successfully as a secondary character set
for individual fields (like you are doing).

If, for what ever reason, you can always resort to a blob but
that would most likely preclude you from using data-aware
components with that field.

~ JD
Back to top
Emmanuel
Guest





PostPosted: Sat Sep 02, 2006 8:20 pm    Post subject: Re: How to get WideString type data value from Field Reply with quote

UNICODE_FSS cannot solve my problem
1.Unicode should let us can see the same data in different OS,but I found
that if I save simlpe Chinese Word or tradition chinese word to Interbase
using simple Chinese OS, then when the data read under tradition chinese OS,
all the chinese word changed to be irrecognizable.
2. for All Unciode Chinese word Stored in Interbase with UNICODE_FSS ,there
is no method get data as unicode, for example, after asString, all unicode
will change to ASCII Code

Quote:
Other threads showed that individuals were indeed using
UNICODE_FSS successfully as a secondary character set
for individual fields (like you are doing).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (InterBase Express) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.