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 

DB-aware components: OnGetText using WideString for a simple

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Mon Aug 28, 2006 6:36 pm    Post subject: DB-aware components: OnGetText using WideString for a simple Reply with quote



Hello,

I am developing with Delphi 6. I made an Access 97 database, and I
connect to this database through an TADOConnection using the Jet
Engine.

Because I want to be able to support Unicode - and as far as I know
Access 97 MDBs do not support that - I store some fields values in UTF8
format. I use a TDBAdvStringGrid to show the contents of one table in a
table kind of view. It has an event called OnGetDisplWideText that
allows me to generate a WideText that is drawn into a cell no matter
which field type the field corresponding with the actual cell really
has.

For a closer look at a record I want to use the Delphi DB-aware
components like TDBEdit. That component doesn't have an event similar
to the one of the TDBAdvStringGrid. I saw that a TField has an event
called OnGetText. But this has a string as a parameter, zhus I cannot
calculate a WideString out of the fields contents and return that.

Does anybody know a way to do that with just the components that I
have. Is there a simple way to programm an extended TDBEdit derived
from the normal TDBEdit that would let me do it. Or are there any
freeware components somebody is aware of?

Thanks in advance for answering my questions.

Regards,

Christian Kirchhoff
Back to top
Riki Wiki
Guest





PostPosted: Tue Aug 29, 2006 12:26 am    Post subject: Re: DB-aware components: OnGetText using WideString for a si Reply with quote



Hoi Christian

You need to repost your question on the Borland news server to make
everybody see it and possibly answer your question. Further, this news
group do not officially exist, the group to use is b.p.d.database.general.

How to post to Delphi newsgroups:
<http://delphi.wikia.com/wiki/Delphi_Newsgroups>
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases 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.