Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set properties for multiple objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00368236
Message ID:
00368282
Vues:
15
>I find myself in form design needing to do following quite a lot:
>
>1. I have set up a no. of fields on the form
>2. Now, I want to automatically set thr 'Tag' property of
> every 'label' field to the associated field's name
>
>e.g. My label fields are : Fld1,Fld2,Fld3,Fld4
>
>I then want the tag property of each of these fields to be:
> fld1,fld2,fld3,fld4 etc.
>
>Every time I set up a form, I have to go into each field manually and change the tag. I reckon there must be a better way...maybe using a builder but I have never used these .
>
>Thanks,
>
>Gerard

Gerard, select your multiple controls in Form Designer and set their Tag property to:

=IIF("." $ this.controlsource,SUBSTR(this.controlsource, AT(".",this.controlsource)+1), this.controlsource)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform