Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can the names of classes put on forms be forced?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00795377
Message ID:
00795590
Vues:
14
This message has been marked as the solution to the initial question of the thread.
Here's a way to do it if you're using VFP8 Toolbox to drop your controls:

- In the Toolbox, right-click on the class you want to change (say, the Commandbutton) and select "Properties"

- Next to the Properties listbox, click the Add button

- In the Value combo, select "Name" from the list

- For the Value, enter what you want to name this class -- for example: MyButton


Now, when you drop this Commandbutton on a form/class, it will set the Name property to what you specified. If you already have a control by that name, then it will revert to the default naming scheme (simply because it won't be able to set the Name property because an instance already exists).


>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 =)
>
Ryan Katri
COB System Designs, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform