Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can the names of classes put on forms be forced?
Message
From
02/06/2003 22:06:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00795377
Message ID:
00795499
Views:
11
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform