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