Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can the names of classes put on forms be forced?
Message
De
02/06/2003 22:06:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00795377
Message ID:
00795499
Vues:
10
>When I add the class "cmdExit" button to a form, it names the button "cmdExit1". I was wondering if there is a way to prevent it from putting the 1 on it as there is only one of these buttons on a form =)
>
>Any advice is appreciated.
>
>Eddie

The problem is that VFP doesn't know in advance that you intend to use only one instance...

I don't think you can avoid this, but you can copy and paste an object (or several object) from a form template or from a working form. This should preserve all properties, including the name (if it isn't already used on the destination form).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform