Hi!
Try something like following:
.lbl.AutoSize = .F.
.lbl.Width = 0
.lbl.Caption = m.tcNewCaption
.lbl.WordWrap = .F.
.lbl.AutoSize = .T.
.lbl.Visible = .f.
.lbl.Visible = .t.
If does not helps, try also to use DOEVENTS before getting width of object. Width is not updated till label re-drawn, label is not re-drawn till code runnign stops and gove control to VFP engine to precess events. DOEVENTS does this.
>Well, I'v tried varaious things, and nothing is working. The
>lblLeft.Width does not change
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.