Article View: borland.public.cppbuilder.database.ado
Article #1630Re: Modifying Object Properties Efficiently
From: Viatcheslav V. Vassiliev
Date: Fri, 11 Jun 2004 09:57
Date: Fri, 11 Jun 2004 09:57
38 lines
2247 bytes
2247 bytes
Why not iterate this array? If all edits are on one form, use Form->Controls[i], Form->ControlCount (iterate also child controls). If on multiple forms, use Screen->FormCount, Screen->Forms[i] to iterate forms. //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "Scott" <the1scot@aol.com> �������/�������� � �������� ���������: news:40c8cd99$1@newsgroups.borland.com... > Good Afternoon Again! > > I am creating an array of about 150 edit boxes with varies functionality. > Since each box will have many properites to set and check for many of my > operations, I have been trying to figure out a way to change the color, for > example of 150 text boxes of the name form: Edit1, Edit2, ..., Edit150. > > Currently, the only thing I can think of is manually entering the following > for each box: > Edit1->Color = clYellow > > Since I have many properties to select and deselect, I would very much > appreciate any suggestions on how to streamline the code to do this, as it > will make the code much more readable. > > Thanks! > > Scott > >
Technical Details
Message-ID:
<40c9820e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40c8cd99$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,d5dbb014a11962a1 X-Google-Attributes: gid10698b,public From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <40c8cd99$1@newsgroups.borland.com> Subject: Re: Modifying Object Properties Efficiently Date: Fri, 11 Jun 2004 13:57:35 +0400 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.234.218.42 Message-ID: <40c9820e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086947854 213.234.218.42 (11 Jun 2004 02:57:34 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail