added test on texcontrol for portate

validation on textcontrol used for number of portate.
added function is_number()