🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.components.writing
Article #42

Re: Data-aware edit field

#42
From: Stephen Moran
Date: Mon, 05 Jan 1998 00:00
36 lines
2249 bytes
The dbEdit's Field has to have its value set. Table.Post after setting
the dbEdit's Text should do it.

Marc Scheuner wrote:
> 
> 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 ]
> ======================================================================

-- 
 +--------------------------------------------------------------------+
 |  Steve Moran, Flying Objects Ltd, London.                          |
 |  Custom-made Computer Programs.  Email: flyingobjects@hotmail.com  |
 +--------------------------------------------------------------------+
Technical Details
Message-ID: <34B0F012.98BA90A3@hotmail.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34b0aa40.11259760@news.bernoise.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 112b07,45716f7439972bae
X-Google-Attributes: gid112b07,public
X-Google-Thread: fe2ce,45716f7439972bae
X-Google-Attributes: gidfe2ce,public
From: Stephen Moran <flyingobjects@hotmail.com>
Subject: Re: Data-aware edit field
Date: 1998/01/05
Message-ID: <34B0F012.98BA90A3@hotmail.com>
X-Deja-AN: 312962925
Content-Transfer-Encoding: 7bit
References: <34b0aa40.11259760@news.bernoise.ch>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Flying Objects Ltd.
Newsgroups: comp.lang.pascal.delphi.components.writing,borland.public.delphi.vcl.components.writing