Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spinner.value X text.value = text.value
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01006285
Message ID:
01006289
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform