Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter the result in a texbox
Message
 
To
20/09/1999 08:19:27
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00266638
Message ID:
00266645
Views:
20
>I would like you to help me in this subject.
>
>I'm new in Visual Foxpro 5.0. I have a form with the following fields, not exhaustive :
>
>Sexe : Male or Female (M or F)
>Family situation : married, bachelor, divorced (M, B, D)
>Number of children (1, 2 , 3, ...)
>Number of parts
>
>I want to determine the number of parts after filling the three first fields.
>
>For instance :
>
>If sexe = Male and family situation = Married and number of children = 2 then the number of parts = 2
>
>
>I would like, after determining the number of parts, to enter the result in a texbox named PARTS.
>
>THANK YOU FOR YOUR HELP
>
>
>NB. My english is not good because I speak french.

I would probably write the code to calculate the number of parts and update the PARTS textbox and place it in a custom method of the form. Then in the lost focus events of the first three controls (sec, family situation, # of children), I would call that form method. You can write your custom method to require all 3 fields to be entered first before calculating the number of parts, or you could update the number of parts after the user enters each field.

Mike A.
Michael P. Antonovich, MCSD
Email: mike@micmin.com
MicMin Associates - Orlando, FL


Previous
Reply
Map
View

Click here to load this message in the networking platform