Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suggested prefixes for classes and objects
Message
From
27/09/2006 19:32:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/09/2006 19:11:39
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01157359
Message ID:
01157708
Views:
14
>>Yes I never have another public variable other than oApp. It's also true that other than oApp all of my variables are local (and in my training classes I tell to the students that only type is local as far as they work with me or be good enough to prove me wrong).
>>
>>Yes I'm sure I wouldn't want to communicate that difference in the name. Reason is simple, it in turn makes my classes hard to modify (when I do would I go and change all references say from frm to pop or other way?).
>>
>>Cetin
>
>One of my global variables is glTrace_RS, a global switch for trace activity. I use this with all my code whether or not it is built into the application.
>
>This seems quite useful to me.
>
>Do you use the "txt" class prefix? What happens if you turn a text box into an edit box? Or a combo box? Or a list box?
>
>Peter

As I said only public variable in VFP is oApp and rest wishfully avoided by VFP itself:) If you need it just have it as a property of oApp.
I can't turn a textbox to an editbox or combobox etc. They are different classes. If I do that by also changing the class, it's simple to change them vs a form case because it is likely a textbox or any other object is referenced in code for 0 or few times. Just a single replace all would do.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform