Re: How to dynamically rename a component in the object inspector ?
- From: "alanglloyd@xxxxxxx" <alanglloyd@xxxxxxx>
- Date: 29 Dec 2005 22:30:36 -0800
An object's name (as specified in code and used by the compiler) and
its Name property are diferent entities, although they may be the same
characters.
The former is a _reference_ to the object, replaced by the compiler
with a pointer to the object; while the latter is a _string_ containing
the characters you (o the compiler) used as a reference to the object.
I think what you really want to do is to specify two variables, one is
a TField variable, and the other is a string variable. In the former
you copy the refefence to whatever db field you are using in the
TDBEdit. In the latter you copy the Name property of that db field.
You can then use either of these as appropriate to manipulate the
field's contents, or to display its name.
Alan Lloyd
.
- References:
- How to dynamically rename a component in the object inspector ?
- From: David AFONSO
- How to dynamically rename a component in the object inspector ?
- Prev by Date: Re: Setting focus on a TWebBrowser
- Next by Date: Delphi Shareware
- Previous by thread: Re: How to dynamically rename a component in the object inspector ?
- Next by thread: Setting focus on a TWebBrowser
- Index(es):
Relevant Pages
|