Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Naming subclasses
Message
From
23/02/2004 09:46:56
 
 
To
23/02/2004 09:07:38
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00879787
Message ID:
00879890
Views:
18
>Hey Bob
>
>I hear you, but look at VFP's help under naming conventions. It says "suggested for objects" but then in the chart header, it says Object, when according to you it should have said "Class".

No, I think that's just what I said, those prefixes are for OBJECTS, which are instances of clasess. You are asking about Class names. VFP doesn't have any recomendations for "Class Naming".. The doc has:
In This Section

Constant Naming Conventions 
   Provides a suggested format for naming constants. 
Object Naming Conventions 
   Provides a suggested format for naming objects. 
Table Field Naming Conventions 
   Provides a suggested format for naming fields in tables. These conventions are recommended, not required. 
Variable Naming Conventions 
   Provides a suggested format for naming variables. 
Window Naming Conventions 
   Provides a suggested format for naming windows. 
>Further, if you subclass a TextBox to use for your own purpose, what will you name the class in the VCX? TextBoxDate? DateTextBox? Why not txtDate?

I would name it DateTextBox, cause it is a class. When I dropped it on a form to create an object, I would name it txtCheckDate or dxtCheckDate. (ie, we sometimes come up with our own prefix for objects created from our customer classes, perhaps dxt for DateTextBox.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform