Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number-style character fields
Message
From
19/02/2008 09:41:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01293663
Message ID:
01293751
Views:
32
>>>>When I set an InputMask for a character field, e.g., to "###.##", the behavior is not what I expect from a numeric field. Can I force the field to behave like a numeric (for instance, if the user types ".", he will automatically go beyond the decimal point), or do I need a different approach (I was thinking of using an unbound TextBox, and setting a value)?
>>>
>>>Hilmar,
>>>
>>>Check Enhanced Numeric Textbox Class File #9395
>>
>>OK, thanks, I'll try to keep it in mind. For the current requirement, I think I'll just use an unbound TextBox, and assign it a .Value of the corresponding type.
>
>Hi Hilmar,
>
>Not sure if this is the same problem (didn't check the whole thread), but I think I had it discussed previously.
>
>See Re: Strange behavior of the textbox with the amount Thread #1088067 Message #1088189 (and the whole thread).

Nadya,

Thanks, but the situation is quite different. Your case was that you wanted an unbound TextBox, I want a bound textbox, but, even though it is bound to a Character field, I would rather have standard numeric input.

Since all the workarounds seem to be fairly complicated, I will just change it to an unbound TextBox.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform