Hello,
I am trying to create Labels in Run Time in a Form but it appears an error that I do not know how to solve.
The code is the next:
***************************************
Dim text(2) as Label
dim i as integer
For i = 1 To 2
With text(i)
.Top = 2 + i
.Left = 2 + i
.Height = 0.8
.Visible = True
End With
Next i
text(1) = mylabel.Item(1) & "........" & totals.Item(1)
text(2) = mylabel.Item(2) & "........" & totals.Item(2)
***************************************
Well, the error appear when I try to assign the .Top property. I do not know why. Can anyone expline me the right process?
Many Thanks.
I am trying to create Labels in Run Time in a Form but it appears an error that I do not know how to solve.
The code is the next:
***************************************
Dim text(2) as Label
dim i as integer
For i = 1 To 2
With text(i)
.Top = 2 + i
.Left = 2 + i
.Height = 0.8
.Visible = True
End With
Next i
text(1) = mylabel.Item(1) & "........" & totals.Item(1)
text(2) = mylabel.Item(2) & "........" & totals.Item(2)
***************************************
Well, the error appear when I try to assign the .Top property. I do not know why. Can anyone expline me the right process?
Many Thanks.