> already know that syntax,

Yeah.. below is the standard in CF.. but hey CFMX translates
CF Code in Java code... is there a work around....?

Joe Eugene



> -----Original Message-----
> From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 12:44 AM
> To: CF-Talk
> Subject: Re: Array Initialization
>
>
> You can't do it in just one line.  You have to first initialize the
> array itself and then populate it in subsequent lines.  You probably
> already know that syntax, but just in case:
>
> <cfscript>
>       appServers = arraynew(1);
>       arrayappend(appServers, "JRun");
>       arrayappend(appServers, "CFMX");
>       ... etc ...
> </cfscript>
>
> Grain of salt included.  General form is there, specific details (like
> attributes and stuff) should be checked for peace of mind...
>
> -Patti
>
> On Wednesday, February 19, 2003, at 10:27  PM, Joe Eugene wrote:
>
> > I cant find a way to initialize an array in CF like in Java.
> >
> > Example (Java Way)
> >
> >    String appServers[] = {"JRun","CFMX","WebLogic","ORAS"};
> >
> > What is the CF Equivalent in One line of code like above?
> >
> > Thanks
> > Joe Eugene
> >
> >
> >
> >
> >
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to