>Hi,
> I would Like to set value to Label.caption. The value is in numeric type. I tried out the following code, it made the label invisible/(I don see it) in my form.......any ideas???
>
> a = a + b
> Thisform.Label1.caption = str(a)
>
>
>Thank you
Jonhn, if label.autosize =.f. and the label is short enough you will not see it because STR() gives you the leading spaces. Make it ALLTRIM(str(a)) and you will see the caption.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison