By average I mean that I get something like 50.1246887 in my TextBox but I need
If I resize the TextBox to fit then I may need a diffrent value at some point like 23.5 in which case the TextBox would then read 23.495 which I do not need.
- do you want do display a variable like x=54.124678 but roundet with 3 digits after the decimal point ?
This is the case of both suggested solutions.
- do you want to allocate the value in the TextBox to a variable but rounded ?
- do you want the variable in the Textbox rounded during input ?
This would be somewhat more complicated, but you can use the Door library
and look at agrahams example of Uppercase in textbox or the livefilter example and adpt it to your requirement.
You will find this in: http://www.basic4ppc.com/forum/showthread.php?t=2183