Bot-Factory 602 Posted August 23, 2010 Report Share Posted August 23, 2010 Hi. I'm using tables to fill text boxes from a csv file. But there is one major problem I'm running into. How can I add text with line feeds? This works:text1,my next sentence,more infos I can use that to fill the three text boxes within the browser. But how can I add something like:text1,my first articleis really niceand has three lines,more infos Is there a way to do that? Any help is highly appreciated Thanks in advanceDan Quote Link to post Share on other sites
Praney Behl 314 Posted August 24, 2010 Report Share Posted August 24, 2010 Hi Dan, If you know a two-dimensional arrays, is not a basic explanation can be found here:http://www.cprogramming.com/tutorial/lesson8.html Don't worry about the coding just try to understand the logic. Ok then after that, or if you already know. Try to create 2 variables (rows,columns) and run them through a loop and increment them through the end of the loop to move to next column/row. Say Set A=0, Set B =0, now in rows and columns running ( A,B ) as positions in (row,column) and increment A, increment be. There will the nested loops:first loop will scroll through the rows and the loop inside it will go across columns. for example:(0,0) (0,1) (0,2) (0,3)(1,1) (1,1) (1,2) (1,3)(2,1) (2,1) (2,2) (2,3).. etc If you have any more problems, Please don't hesitate. If you like my answer do vote for it. Cheers! Praney 1 Quote Link to post Share on other sites
Bot-Factory 602 Posted August 25, 2010 Author Report Share Posted August 25, 2010 Praney, thanks a lot for your help. After testing a little bit I decided to just separate it into three different files. At the moment a lot easier for me to implement it that way. Dan 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.