Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class for transforming paires into dozens & vice versa
Message
 
 
To
22/10/1998 13:14:24
Pierre Sauve
Micro-Fox Canada Inc.
Montréal, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00149030
Message ID:
00149515
Views:
25
Pierre,

>I am not sure I understand well what your suggesting me to do . I am quite starting to learn VFP .

You understand what was posted better than you think you do! We are all here to learn and help others.

>1) Is mcControlSource an added property in the class ?

Yes, the class name is txtInches which in this case was derived from bTextBox which is derived from cTextBox. cTextBox is my lowest level class based on the VFP BaseClass TextBox. All other TextBox classes are derived from cTextBox. bTextBox is a class for the client it rarely contains code. mcControlSource was a property added to the class to hold the original ControlSource. This allows me to drag and drop the field from the table/view, those fields have been mapped to use txtInches in the DBC. Since the underlying field is numeric and the user is working with a character representation the control unbinds itself and uses the Refresh to convert from numeric -> string and the Valid to convert string -> numeric and replace the value in the field.

>2) Is the code that you sent me in the class definition , and if yes then I suppose all of it is the different methods ?

Yes, each section of code was for the method named at the start of the section.

>3) Now . When I create a form with a field that uses that class , do I need to do something special as far as properties of methods is concerned in the form's properties sheet ?

Not in this case, you just set the ControlSource as you would any other Textbox, the class has the native intelligence to know how to handle everything from there.

>P.S. Sorry for the syntax errors in my text . I am French Canadian and I do not know english perfectly .

Your english is much better than my french. *LOL*
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform