Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkboxes and selecting all of them
Message
De
11/01/2000 10:21:39
 
 
À
11/01/2000 10:14:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00316165
Message ID:
00316172
Vues:
17
You could put all of them in a container object. Then, in the button.click(), cycle thru the .Controls collection of the container and set the value of the checkboxes to (whatever):

FOR 1 = 1 TO Container.ControlCount()
Container.Controls[i] = {whatever}
NEXT i

Hope that helps.

>Hello and thanks in advance
>
>I am trying to find some minor code that will take a group of checkboxes and select all of them on a click of a button.
>
>I have used code before, but I am having a brain freeze.
>
>Thanks
>Jason Hall
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform