Skip to main content
Participant
July 14, 2008
Question

returntype=

  • July 14, 2008
  • 2 replies
  • 433 views
How decide what I put on the returntype why are times I see variable name there?
so sorry for my english
This topic has been closed for replies.

2 replies

Inspiring
July 15, 2008
when do you use the variable name then dan? I've seen this as well
Inspiring
July 14, 2008
this defines what your cfc returns the variable in use returntype="any" to accept them all. you can return even query names as returntypes. I am sure someone else will be able to explain more about when you use any versus other types, good luck
Inspiring
July 14, 2008
quote:

Originally posted by: Hydrowizard
this defines what your cfc returns the variable in use returntype="any" to accept them all. you can return even query names as returntypes. I am sure someone else will be able to explain more about when you use any versus other types, good luck

I'm not sure if I ever use returntype="any". If the method is returning data, I use the appropriate data type. Otherwise I use boolean and return true.
Inspiring
July 15, 2008
quote:

Originally posted by: Dan Bracuk
I'm not sure if I ever use returntype="any". If the method is returning data, I use the appropriate data type. Otherwise I use boolean and return true.


Upon further review, I wrote some web services that return xml and use returntype = "any" for that.