Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with this code?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00701938
Message ID:
00701947
Vues:
24
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform