Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter the result in a texbox
Message
 
À
20/09/1999 08:19:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00266638
Message ID:
00266645
Vues:
19
>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


Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform