Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <cfset strList = "HAM,HAM,CHEESE,TOAST,CHEESE,HAM" />
- <cfset listStruct = {} />
- <cfloop list="#strList#" index="i">
- <cfset listStruct[i] = i />
- </cfloop>
- <cfdump var="#strList#" />
- <cfdump var="#listStruct#" />
- <cfdump var="#structKeyList(listStruct)#" />
- <cfscript>
- strList = "HAM,HAM,CHEESE,TOAST,CHEESE,HAM";
- for(i=1;i<=ListLen(strList);i++){
- writeoutput(ListGetAt(strList,i));
- listStruct[i] = ListGetAt(strList,i);
- }
- </cfscript>
Add Comment
Please, Sign In to add comment