rocket976 62 Posted January 26, 2012 Report Share Posted January 26, 2012 Having some difficulty with saving multiple account profile data. saving info in a table as follows define Save Bookmark Sites Account Information { clear table(&bmsites) set table cell(&bmsites, 0, 0, "{$account data("Username")}@hotmail.com") set table cell(&bmsites, 0, 1, #Website) set table cell(&bmsites, 0, 2, $account data("Username")) set table cell(&bmsites, 0, 3, #password) set table cell(&bmsites, 0, 4, "history to scrape add") set table cell(&bmsites, 0, 5, "Rss Feeds To Add Submit") set table cell(&bmsites, 0, 6, $date) save to file("{$special folder("My Documents")}/bookmark_accounts.csv", &bmsites)} So im cycling through a bunch of sites, verifying the email, confirming then want to add to bookmark_accounts.csv which works fine for a single site BUT with each new account created it overwrites the last, this may be a stupid question but how do I get it to save to the next row? Thereby allowing it to save each site.. Should I be making a list then saving that? Quote Link to post Share on other sites
Pete 121 Posted January 26, 2012 Report Share Posted January 26, 2012 I think you are really going about it the hardway to do it this way you need to add a counter and increment it with each loop Or forget the table use the add item to list username,password,whateverwhen you save to file save as .csv job done Quote Link to post Share on other sites
JohnB 255 Posted January 26, 2012 Report Share Posted January 26, 2012 I agree...create a list for each type of data and then after you are done looping, $add list to table as column, etc and save to a csv file. John Quote Link to post Share on other sites
rocket976 62 Posted January 26, 2012 Author Report Share Posted January 26, 2012 Thanks for the quick replies. I see how the list would be easier but not really sure about the implimentation of increment . Any examples of it in use? 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.