Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with this code?
Message
 
To
18/09/2002 14:05:42
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00701938
Message ID:
00701944
Views:
19
>Help...anyone
>
>I have a form with two controls, a label and a button. When I click the button I want to see the label display some numbers. In the button's click event, I put the following:
>
>
>FOR j = 1 TO 100000
>	thisform.label1.Caption = TRANSFORM(j)
>ENDFOR
>
>
>Now I thought that I should be able to see the label displaying the numbers 1 thru 100000 but instead I only see the last value (100000). I even tried sticking a DOEVENTS in the loop with no success.
>
>It seems like such a simple request. What did I do wrong?
>
>TIA
>
>MIke

with thisform.label1
.Caption =""
FOR j = 1 TO 100000
.Caption = .Caption +TRANSFORM(j)
ENDFOR
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform