Validate Field with Numeric values only.
There are often times, when we need to validate fields to accept values which are numeric only. For example telephone numbers.
The below code can help us achieve this.
public void textChange()
{
super();
this.text(strkeep(this.text(), "0123456789"));
}
{
super();
this.text(strkeep(this.text(), "0123456789"));
}
Thanks,
I have a good one:
ReplyDeleteif( strLen(strkeep(VALUE, ":;=?¡¿!|¬°&%/(){}[]¨+<>@")) > 0){
error("info error");
}