Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculations on a Form(Similar Thread # 129868 Mess #129
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00133745
Message ID:
00133765
Views:
12
First of all, it is not generally good practice to store calculated data in a database. This is especially true if the vale can be very easily calculated which seems to be the case here.

As for your custom property, VFP makes all custom properties all lower-case and displays them at the end of the property sheet. If you're looking among the default properties you won't see it.

>My question is twofold. I have got three fields(text boxes) that make up a total.
>
>Firstly. Is it good practice to store the total in a field in a table when it can be calculated and placed on the form in a text box? I seem to recall that I have read somewhere in FPD 2.6 manuals that a calculated field should never be stored.
>
>Secondly. In the Developers Guide p234 (VFP 5.0) it states that I can create a new property to store a value and a method to hold the code for the property. I've tried to create a new property called myTotal (Form menu, New Property), but it does not show on the Properties Form1 of my form as in the picture on p235. Anybody got any idea what I am doing wrong and how do I rectify the problem.
>
>Thanks in advance.
>
>Petrus.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform