Thread View: borland.public.delphi.database
2 messages
2 total messages
Started by ckirchho
Mon, 28 Aug 2006 13:36
DB-aware components: OnGetText using WideString for a simple string Field
Author: ckirchho
Date: Mon, 28 Aug 2006 13:36
Date: Mon, 28 Aug 2006 13:36
30 lines
2393 bytes
2393 bytes
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
Re: DB-aware components: OnGetText using WideString for a simple string Field
Author: Riki Wiki
Date: Mon, 28 Aug 2006 19:26
Date: Mon, 28 Aug 2006 19:26
8 lines
1174 bytes
1174 bytes
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>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads