Re: array of TEdit as a constant

From: Harald Knautzberg (knautzberg_at_gmx.de)
Date: 01/15/05


Date: Sat, 15 Jan 2005 10:45:56 +0100

Nicholas Sherlock schrieb:
> Untested, and you should really use this to populate an array so you
> don't have to search each time:
>
> for i:=1 to 40 do
> tedit(form1.findcomponent('edit'+inttostr(i))).text:='This is edit
> number '+inttostr(i);

thx, this works fine. I've also declared an const array of strings with
the names of the edit fields, because the names of my edits are not
continuous enumerated they are like edit01, edit02, edit11, edit12,...

but it works very good!

thx!!!

Harry



Relevant Pages

  • Re: Question about installations
    ... Thx for your input. ... have done in my code was increased the array size from 60,000 to 200,000. ... My question is does the customer have to uninstall the ... >> exe code and do a reinstall of the new code or can I just send him the ...
    (microsoft.public.vb.general.discussion)
  • Re: [DUA] Binary data
    ... ah thx. ... >> Registry values of type binary need to be entered as an array of bytes. ... >> Size parameter should specify the number of elements in the array. ... but I can't figure out the exact correct syntax. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Date code
    ... > I don't have a worked out example in PHP for Zoeller's algorithm for ... You can then build your own array for the month. ... Hey Jerry, ... Thx for the link even it's written for VB it can help a hand to understand ...
    (comp.lang.php)
  • Re: [PHP] store array into session variable and get it back later
    ... thx. ... object of class CBreadcrumb. ... Which AFAIK isn't supported. ...
    (php.general)
  • Re: array of TEdit as a constant
    ... I suggest that you reexamine your design. ... >I have round about 40 edit fields where I have to set the text property. ... >The standard value for the text property of each edit came from an array ... Alternatively you could set up an array of TEdit and assign each ...
    (alt.comp.lang.borland-delphi)