Jump to content
UBot Underground

Fill Textbox from File with Line Feed


Recommended Posts

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 article

is really nice

and has three lines,more infos

 

 

Is there a way to do that?

 

Any help is highly appreciated

 

Thanks in advance

Dan

Link to post
Share on other sites

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 :D

  • Like 1
Link to post
Share on other sites

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

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...