Jump to content
UBot Underground

Pulling Data From Csv


Recommended Posts

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!

 

 

Link to post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...