Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting commas in text box using program
Message
From
05/04/2004 10:19:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
05/04/2004 10:14:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00892254
Message ID:
00892259
Views:
24
>Hi all, i have a form called parameter in wich user can select number of decimal numbers displayed in a text box showing a number. I need that the form change when user choose 0 decimal places, 2 decimal places, 3 decimal places. The program must change every textbox in the form that displays a number... Any ideas
>
>Thank you all

You could use a textbox based on a class. In the class, write the code to change the InputMask, for instance, in Init(), GotFocus() or Refresh(), depending on your needs.

This would work in every form where you use this class.

Another way to do this is to loop through all TextBoxes in your form. See amembers(), and SetAll().
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