I want to add or insert thousands commas in between digits of a number as long as I input digits like some calculators (see the image). For example, when I begin inputting the digits 793, the code inserts automatically a thousands comma if I input the forth digit say for example 5, hense the number looks like 7,935 and so forth. I have no idea, it seems difficult for me. You can show me with a variable, a text edit or anything else, and any help even small would be appreciated.
