Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding All Textboxes in Form
Message
De
30/08/2005 08:29:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01045035
Message ID:
01045097
Vues:
34
uups, so did I :(

I tried it long time ago, back with VFP5 I think and something did not
work as I wanted. That is why I developed class that loops trough all controls on the form. Anybody knows if the beheivior of SetAll() was like this even in VFP5 ?
Rgds++



>>>>If i want to set background, foreground color of all textboxes in a form as per the users selection, how can i find out all the textboxes present in a form. Is there any way to loop through all the textboxes.
>>>>
>>>>Can I use variables while desiging the form for the background and assign it in the loop ?
>>>>
>>>>Pl. help.
>>>>
>>>>Thanks in advance.
>>>>
>>>>Regards
>>>
>>>Check SetAll() nmethod of the form, this will works only if all textboxes are placed directly in the form, not in some other container. Other way is to crate a Method that will loop through all controls.
>>
>>hi Borislav,
>>
>>Form.SetAll() works for me, even if the textboxes are on pageframes, containers, etc. iow, SetAll does the loop for you
>
>Silly me :o)
>I always thought tha SetAll changes only these controls that are directly subordinate to form/container.
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform