ColdFusion Edge 2001
A Fast Track for ColdFusion Certification
International Web Services Conference & Expo East
September 23-26 in New York City
Creating Return Codes
Creating Return Codes
Can use same logic to create return codes from custom tags
Good practice, furthering the notion of treating them like subroutines and user-written functions
Be careful not to overwrite a variable existing in caller
One solution is to create caller.variable with very unique name, such as caller.ctname_variablename
Yet another approach is to use CF’s flexibility in using “object.property” notation for variables
Consider using caller.ctname.variablename
Don’t’ even need to create a ctname structure first to use this approach
Previous slide
Next slide
Back to first slide
View graphic version
Home
Speakers
Photos
CFConf Central