Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Labels in Run Time

Status
Not open for further replies.

mvillara

Programmer
May 18, 2002
24
0
0
ES
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.
 
missing the 'createcontrol' method.


MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
Actually, missing "createcontrol" -amongst the several errors, but at least you could use that to look up most of the 'stuuuufffffffff' in Help!

MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top