Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label
Message
 
To
22/02/1999 20:25:32
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Label
Miscellaneous
Thread ID:
00190268
Message ID:
00190270
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform