Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correct Display of Value In A Spinner
Message
From
03/12/2001 19:09:27
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
To
03/12/2001 19:07:03
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00589001
Message ID:
00589014
Views:
39
>>>Thanks to anyone who can offer a solution. I am using a spinner on a form that reads a text field from a table and through the use of a case..endcase structure, displays a numeric value. The field contains one of the 12 short forms for the month that the record was added, ex. "JAN", "FEB" and so on. The refresh method updates the current spinner value and assigns the numeric representation of the month. Everything works correctly, except that the spinner value displayed is always 1 record behind the rest of the form. So the month text box will say "AUG" and the spinner displays a 2 which was the correct value for the previous record. If I click on the "Next" button, the month reads "JUL" and the spinner value reads 8. I have tried many different permuations of the refresh methods for both the form and the spinner itself, but can't seem to get the spinner to display the correct numeric month. Any ideas greatly appreciated.
>>>
>>>Regards
>>>Carmen
>>
>>By the sounds of it, the spinner may be getting refreshed before the record pointer has moved.
>>Try shifting the code that moves the record pointer, and make sure it has moved before you refresh the screen.
>
>Hi Chris
> The record pointer is moved via the "Next" button using a simple skip command, then refresh is called which updates the display of the spinner. I'm not sure how to code it any differently. I think I'm moving the record pointer before calling the refresh, but maybe thisform.refresh is called more times than I figured.
>
>Carmen

Chris, the update on the spinner value. I moved the case..endcase structure to the refresh of the spinner object, and called it after the skip command. It now seems to work correctly. Thank you for turning the light on.

Carmen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform