just to bring this thread back to the dead
# cfml-general
a
just to bring this thread back to the dead
CF doesn't like null
I can't do
function myfunc(numeric id = null)
CF doesn't like the use of
null
and I also can't do
function myfunc(numeric id) {
and pass
null
into it because cf states 'null' is not numeric
so I think it's going to have to be
-1
unless someone has any other suggestions
supposedly you can set it in
application.cfc
Copy code
component{
    this.nullSupport = true;
}
but I don't wanna do that
a
and pass
null
into it
Just don't mention that param at all. Don't pass it anything. Then deal with
if (isNull(id))
in the method if you need to