random random 0 Posted February 19, 2015 Report Share Posted February 19, 2015 Having an issue with pulling in a list from a CSV file. I used another thread's code that I found here on the forums for this (forget where), but it doesn't seem to be working. Comes up with blanks. Would love it if someone can tell me where I'm going wrong. create table from file(#uiopen csv,&csvtable)set(#tabletolist,1,"Global")loop($table total rows(&csvtable)) { add item to list(%topics,$table cell(&csvtable,#tabletolist,0),"Don\'t Delete","Global") add item to list(%comments,$table cell(&csvtable,#tabletolist,1),"Don\'t Delete","Global") increment(#tabletolist)}set(#tempkeyword,$next list item(%comments),"Global")set(#tempsearches,$next list item(%comments),"Global") loop($list total(%comments)) { set(#tempkeyword,$next list item(%comments),"Global") set(#tempsearches,$next list item(%comments),"Global")} When I try to make use of those variables immediately after this there's nothing there. What's wrong here? Thanks in advance! Quote Link to post Share on other sites
Edward_2 85 Posted February 20, 2015 Report Share Posted February 20, 2015 create table from file("{$special folder("Application")}/mycsv.csv", &csvtable)add list to list(%my csv, $plugin function("TableCommands.dll", "$list from table", &csvtable, "Row", 0), "Delete", "Global") Use a table plugin its easier, there are some paid ones and some free ones here http://www.ubotstudio.com/forum/index.php?/topic/13435-every-plugin-listed-here-selling-buying-look-no-further/ Peace Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.