Article View: comp.lang.pascal.delphi.components.writing
Article #41Data-aware edit field
From: Marc Scheuner
Date: Mon, 05 Jan 1998 00:00
Date: Mon, 05 Jan 1998 00:00
25 lines
1704 bytes
1704 bytes
Folks I have a non-visible component that "attaches" to two edit fields and provides a means of displaying a code in one of the edit fields, and the corresponding description in the other edit field (by means of a lookup table). This works nicely with TEdit fields. But, when I have a TDBEdit field, the component seems to work alright: if I enter a valid code in the code DBedit field, the full text DBedit field gets updated with the corresponding description that belongs to that code, but if I tab into the full text DBedit field, I get the value stored on the underlying table again, instead of the new value. What's wrong? I am setting the new values of the DBedit fields by assigning new values to their .Text properties, I was expecting that this should be enough to get the field value updated (but obviously it's not enough). Any hints? Thanks in advance! Marc ====================================================================== [ Marc Scheuner, marc.scheuner@berner.ch CH-3001 BERNE, Switzerland ] ======================================================================
Technical Details
Message-ID:
<34b0aa40.11259760@news.bernoise.ch>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fe2ce,45716f7439972bae,start X-Google-Attributes: gidfe2ce,public X-Google-Thread: 112b07,45716f7439972bae,start X-Google-Attributes: gid112b07,public From: marc.scheuner@NO.SPAM.PLEASE.ch (Marc Scheuner) Subject: Data-aware edit field Date: 1998/01/05 Message-ID: <34b0aa40.11259760@news.bernoise.ch> X-Deja-AN: 312908419 Organization: Berner Versicherungen Reply-To: marc.scheuner@NO.SPAM.PLEASE.ch (Marc Scheuner) Newsgroups: comp.lang.pascal.delphi.components.writing,borland.public.delphi.vcl.components.writing