Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting multiple object properties on a page
Message
De
25/06/2002 08:48:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/06/2002 08:38:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00671959
Message ID:
00671966
Vues:
22
>I have a two page form where I allow access to the second page only when the user makes a selection from a listbox and clicks on an edit button. When they click on the button the click event sets focus to the second page. On the second page's SetFocus event I want to make a test and enable or disable all objects on the second page based on the test. I tried to do this with the following code:
>
> m.llAllowEdits = TestForRights(THISFORM.Name)
>
> WITH THISFORM.pgfFrame.pagPage2
>
> .Enabled = m.llAllowEdits
> .ForeColor = RGB(128,0,0)
>
> ENDWITH
>
>The RGB() change was only to see if the change was taking place. The only thing that seems to have been modified was the pagPage2 properties, not any of the textboxes, labels, etc. on the page. My question is: is there any way to do this without having to name each and every one of the objects I want to affect?

See Setall()
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform