Answered
Can I access a function variable form outside?
I don't know much about ColdFusion yet. If I declare/cfset a variable inside a function, can I just access that variable directly from anywhere on the .CFM page?
I don't know much about ColdFusion yet. If I declare/cfset a variable inside a function, can I just access that variable directly from anywhere on the .CFM page?
If you set a variable in a function without specifying var then yes, the variable will become globally accessible.
Cheers
Eddie
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.