Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
For loop
Message
 
À
07/01/1999 09:40:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00173475
Message ID:
00173521
Vues:
20
Hi Catzz,

>instead of using so many code to make all textbox to grey color,
>can i use for loop to shorten the code?
>
>i.e.
> for n=1 to 20
> txt1=textbox+alltrim(str(n,2))
> thisform.txt1.backcolor=grb(225,225,225)
> endfor

Yes, you can, but it should be:
For lnTextbox = 1 to 20
   Store RGB(225,225,225) To ("Thisform.txt"+Alltrim(Str(lnTextbox))+".BackColor")
Endfor
Christof
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform