Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spinner - How To Display .5 Increments
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00126353
Message ID:
00126750
Vues:
30
>I have put a spinner control on a form that accepts a user's selection for number of hours. I need the number of hours to increment by 1/2 hour (0.5).
>
>Apparently the spinner is rounding, because it displays zero until you click the up arrow twice, then it displays 1.
>
>Also, the spinner text box shows 0000001, 0000002, etc.
>
>Is there any way to make the spinner box show 0.1, 0.2, etc? TIA, CH.

Hi!

If the control is attached to a controlsource that is a field in a table, the decimal point should be there automatically and should increment properly (as long as the field has decimal places greater than 0.

If you have a controlsource that is a property or variable, then you must initialize the variable with a decimal component: IOW:
a=0.0

If you do not have a controlsource on the spinner, set the value property to 0.0.
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform