Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with this code?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00701938
Message ID:
00701947
Views:
23
I try your code and it works fine
Perhaps you might try :
FOR j = 1 TO 100000
	thisform.label1.Caption = TRANSFORM(j)
       Thisform.refresh
ENDFOR
>>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
B.D.H.
Previous
Reply
Map
View

Click here to load this message in the networking platform