At 09:44 AM 2/19/2006, Jochem van Dieten wrote:
> > 2- If the user enters a dot with no numbers, e.g., "na.", the letters
> > get stripped (which is good) but the dot does not, and it creates an
> > error similar to the one quoted above. Any way of detecting such
> > instances of dots with no numbers?
>
>IsNumeric() on the result of the replace operation.
Thanks, I added this to the INSERT code:
<cfif IsDefined("GPA") AND #GPA# NEQ "" AND isNumeric(#GPA#)>
#GPA#
<cfelse>
NULL
</cfif>
.... and it seems to be working now.
Thanks again,
Roberto
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232847
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54