Article View: borland.public.jbuilder.java.swing
Article #10926VB "Control Array" equivalents
From: Edward Wildgoose
Date: Tue, 27 Jul 1999 00:00
Date: Tue, 27 Jul 1999 00:00
16 lines
1196 bytes
1196 bytes
Would someone mind offering advice on emulating VB's control arrays eg, in VB you can put [x] buttons in a control array and then have all the events piped through one event proc and refer to each item in array notation. Obviously is is no problem to get all the event controls wired to one procedure, but the result is not indexed (although I could write that bit, easily). What would be the easiest way to refer to item 3 in a group though? eg, they are named Button1, Button2 and Button3. How might I access Button[i]? I imagine that there is a function which can return a reference to a control using a string representation of its name? Thanks Ed Wildgoose
Technical Details
Message-ID:
<7njrbn$4pg1@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,2d9b21a88607305a,start X-Google-Attributes: gid111d45,public From: "Edward Wildgoose" <Ed@ewildgoose.demon.co.uk> Subject: VB "Control Array" equivalents Date: 1999/07/27 Message-ID: <7njrbn$4pg1@forums.borland.com> X-Deja-AN: 505709071 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing