Topic Options
Rate This Topic
#141215 - 04/23/09 05:59 AM Number Validation
expert Offline
Stealth Member

Registered: 01/01/09
Posts: 10
Hello Listers,

I want to put validation on a Character field for numbers only.How should i check if the field is containing only numbers?

Please help on this.

Top
#141216 - 04/23/09 06:32 AM Re: Number Validation [Re: expert]
Vincent_RIEDWEG Offline

Old Hand
****

Registered: 05/24/05
Posts: 1454
Loc: France
Hi,

You can use the pattern $DIGIT$.
_________________________
Vincent.

Top
#141222 - 04/24/09 12:15 AM Re: Number Validation [Re: expert]
expert Offline
Stealth Member

Registered: 01/01/09
Posts: 10
Vincent,

I will tell you the situation.I have one character field.This field should contain 'characters and then followed by numbers'.For example the field should contain the value of 'PRQ1234'.I am extracting the string after PRQ in a temporary field.So,the temporary field will have value if 1234 in this case.But, if this temporary field contains a value other than numbers,then the user should get a error message.

Regards,

Top
#141373 - 07/30/09 05:56 AM Re: Number Validation [Re: expert]
Maggie Offline
Stealth Member
**

Registered: 12/26/07
Posts: 44
Hi,

As Vincent rightly said the temporary field properties->Attributes tab select the patter as $DIGIT$.So if there are any value other than numbers it will show an error message to the user.

Thanks
_________________________
Maggie

Top