M
MI_
I have a form with 10 labels, and a module for fixing its backcolor, as
follows (changecolor() is a publicfuction defined for this porpose):
label1.backcolor = ChangeColour(label1.caption)
label2.backcolor = ChangeColour(label2.caption)
.............................................................
label10.backcolor = ChangeColour(label10.caption)
Is there any way, in other to reduce this code to define an array to get
something like this:
label(1 to 10)
for i=1 to 10
label(i).backcolor = ChangeColour(label(i).caption)
next i
follows (changecolor() is a publicfuction defined for this porpose):
label1.backcolor = ChangeColour(label1.caption)
label2.backcolor = ChangeColour(label2.caption)
.............................................................
label10.backcolor = ChangeColour(label10.caption)
Is there any way, in other to reduce this code to define an array to get
something like this:
label(1 to 10)
for i=1 to 10
label(i).backcolor = ChangeColour(label(i).caption)
next i