Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
With controls
Message
 
 
À
15/10/2003 23:33:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00839111
Message ID:
00839112
Vues:
24
You can use FOR EACH loop
FOR EACH oControl in thisform.pageframe1.page1.controls
  if oControl.value = 2
...
>Once upon a time I saw a code sample that used a construct that would step through the controls of a form but I can't seem to remember how it went. I want to do something like :
>
>with thisform.pageframe1.page1.controls
>if .value = 2
>do something
>endif
>endwith
>
>When using this construct I get an error that says controls is not an object. Can anyone point me to an article that explains how to do this?
>
>Thanks in advance.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform