Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spinner.value X text.value = text.value
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01006285
Message ID:
01006289
Vues:
18
>Got a spinner within a form that links to the number of hours.
>A text box1 linked to a table for hourly rate ($10) and yet another text box2 for the total amount due.
>
>Question: What category inside the spinner's properties do I insert the code that will automatically update the text box2 (total amt due) as the spinner is being clicked. So that if the spinner is clicked to 3, text box2 would indicate $30 but if they went too far and really wanted 2, upon clicking to set it to 2, text box2 would indicate $20.
>
>Thanks everyone.
>
>Ruben

In InteractiveChange of the Spinner call TextBox2.Refresh(), which in turn will have this.value = this.parent.Spinner.value * lnHourlyRate
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform