Re: Labels
- From: Stan Weiss <srweiss@xxxxxxxxx>
- Date: Sat, 29 Oct 2005 19:03:54 -0400
Thanks Randy,
Stan
Randy Day wrote:
>
> Stan Weiss wrote:
> > Can some give me the pro's and con's for when you would code each of
> > these 2 different methods.
> >
> > Label 1 to Label 111
>
> p: quick 'n easy - drag 'n drop
> c: each control must have own subs and functions
> c: no looping through controls; each must be tested
> in code separately
> c: no creating new controls at runtime
>
> > verses
> > Label 1(0) to label 1(110)
>
> p: loops such as the following:
> for x = 0 to 110
> if label 1(x) = "test" then
> 'do something
> end if
> loop
>
> p: add new controls on the fly:
> redim preserve label 1(112)
> 'code here to position and use new label 1(111)
>
> p: control subs/funcs now get 'Index' variable,
> so one sub can be written to handle all labels.
> Lots less code needed
>
> c: requires 30 seconds more thought at design time
> to implement than 110 separate labels
>
> HTH
.
- References:
- Labels
- From: Stan Weiss
- Re: Labels
- From: Randy Day
- Labels
- Prev by Date: Re: vbPrnDlg: Collate display bug.
- Next by Date: Expert System
- Previous by thread: Re: Labels
- Next by thread: Re: Labels
- Index(es):
Relevant Pages
|