If you want to allow other caracters like . and , add them in the class:
REFind("[^0-9.,]",form.PropertyDataPrice)
> -----Original Message-----
> From: Stuart Kidd [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 24 februari 2004 10:50
> To: CF-Talk
> Subject: REFind
>
> Hi guys,
>
> I'm trying to make sure that my field has ONLY numeric
> characters otherwise show an error. I'm using the REFind but
> it doesn't pick up characters like " $ � etc.
>
> <cfelseif REFind("[[:num:]]",form.PropertyDataPrice)><cfset
> MessageAlert = MessageAlert & "<font color='red'>Price</font>
> must only be numbers baby.<br>"></cfif>
>
>
> Any ideas?
>
> Cheers,
>
> Stu
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

