Harald Knautzberg
2005-01-14 22:17:54 UTC
Hello Newsgroup,
I need an array of TEdit declared as a constant but delphi said: error -
undefined designator ed_key1, ed_key2, ed_key3 - constant expression
expected (hope that the translation fits :-)
here's my code:
[code]
unit u_frm_rotoren;
interface
...
Forms,
Dialogs, StdCtrls, Buttons, u_typen;
type
Tfrm_settings = class(TForm)
ed_key1: TEdit;
ed_key2: TEdit;
ed_key3: TEdit;
...
implementation
const ArrEdits : array [0..2] of TEdit
= (ed_key1, ed_key2, ed_key3);
[/code]
Thanks for any ideas,
Harry
I need an array of TEdit declared as a constant but delphi said: error -
undefined designator ed_key1, ed_key2, ed_key3 - constant expression
expected (hope that the translation fits :-)
here's my code:
[code]
unit u_frm_rotoren;
interface
...
Forms,
Dialogs, StdCtrls, Buttons, u_typen;
type
Tfrm_settings = class(TForm)
ed_key1: TEdit;
ed_key2: TEdit;
ed_key3: TEdit;
...
implementation
const ArrEdits : array [0..2] of TEdit
= (ed_key1, ed_key2, ed_key3);
[/code]
Thanks for any ideas,
Harry