Question : VFP dynamic inputmask

Hi, I've a big question for all experts:
Is possible to create a dynamic InputMask for a TextBox, When I can input only numeric data but with the decimal places dynamic?
I want to digit into a TextBox either number like 87 but also 24,32 or 0,4356 and display only the valid char with the 0 truncation at the end.

Answer : VFP dynamic inputmask

If you set the InputMask = "########" for the  textbox then you may enter digits, decimal points, and signs.

If you need exact number of places different for each keyboard input then you have to create the InputMask in advance.

Another possibility is to control entered characters in InteractiveChange event which is fired after each key press.

What you mean by "0 truncation at the end"? If it is just some entered number adjustment then you may do it in Valid event.
Random Solutions  
 
programming4us programming4us