Why is it that you have declare all you local var's before using
 a <cfscript> block.

 example
 <cfcomponent>
  <cffunction ...>
   <cfargument..>
   <cfscript>
        var myvar1="";
        var myvar2="";

  </cffuntion>
 </cfcompoent>

  The above gives an error and needs <cfset var myvar=""> grouped
  together before the <cfscript> block.
  In Java, you can declare method local vars anywhere (for(int
i=0;<=10;i++))
  in the body of the method. Why are CFC's acting differently?
  Can you declare static variables/methods in a CFC?

Thanks
Joe Eugene





----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to