Re: How to dynamically rename a component in the object inspector ?



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

.



Relevant Pages

  • RFC: XCall calling convention...
    ... compiler, although what I have implemented thus far differs from this spec ... Arguments are passed on the stack in right-to-left order, ... This will attempt to specify Signature strings as applied to data types. ... reference to type ...
    (alt.lang.asm)
  • Re: cin.get(char *, int, termination char) question
    ... >reached before the maximum number of characters is ... a null is written and the termination character ... >reference does not mention empty fields. ... >command line compiler for Borland CBuilder4. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: switch() Statement Question
    ... compiler must be able to compile any conforming translation unit ... The tokens are composed of characters. ... it seems to make no sense to specify the limit of a ...
    (comp.lang.c)
  • Re: cobol programs and functions in c (call *obj with param)
    ... If the compiler does not use some kind of template to specify if parameters ... explict BY REFERENCE or BY CONTENT in the COBOL CALL USING. ...
    (comp.lang.cobol)
  • Re: How to convert Infix notation to postfix notation
    ... Even if we grant that, there remain others which are not matters of opinion, ... and cannot use it as a *reference*. ... Failure to do so causes common bugs. ... I do compiler stuff; we don't actually do our own compiler/libc ...
    (comp.lang.c)