Friday, March 20, 2009

ColdFusion Val() function Gotcha.

Try this and you will see what i am talking about

<cfdump var="#Val(08234)#">
<cfdump var="#Val(80234)#">

You will see that in the first dump strips the 0 off of the number leaving you with 8234...not good for people that believe in wrapping Val() around everything that should be numeric. NOTE: It doesn't matter if there is one 0 or 20 at the beginning of the number, they will all be stripped off.

1 comment:

  1. Whoever thinks zip code is a number needs to be smacked around until they realize zip code is NOT a number. It’s a 5 digit code.


Replacing your HDD with a SSD in a Mid-2009 Mac

What you'll need: T6 screwdriver PH000 philips screwdriver SATA to USB connector ( or SATA to Thunderbolt if you feel like spending ...