Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with this code?
Message
 
À
18/09/2002 14:20:12
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00701938
Message ID:
00701954
Vues:
25
>Yuri,
>
>Thanks for trying to help. Your code will keep appending the counter 'j' to the caption. This is not my problem. The problem I'm having, is that the label's caption does NOT change within the executing loop.
>
>Any other ideas.
>
>Mike
>
>>
>>with thisform.label1
>>.Caption =""
>>FOR j = 1 TO 100000
>> .Caption = .Caption +TRANSFORM(j)
>>ENDFOR

How do you supposed to see that caption is changing? On each loop you need to wait until caption is refreshed showing the new number for the time period enough to be recognized by human eye
FOR j = 1 TO 100000
.Caption = TRANSFORM(j)
* possibly you need to add here
.refresh
wait wind time 0.05 ""

ENDFOR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform