Skip to main content
dalvydasv27776233
Inspiring
April 11, 2018
Frage

Count lines in .txt file and addChilds with scrolling

  • April 11, 2018
  • 1 Antwort
  • 444 Ansichten

Hello everyone, and good day. I have question. I know how to load information from external txt file. But i need to do this:

I have *.txt file for example:

2018 - 05 - 24 - 14:30 from..

2018 - 05 - 25 - 14:30 from..

2018 - 05 - 26 - 14:30 from..

2018 - 06 - 01 - 14:30 from..

2018 - 06 - 24 - 14:30 from..

2018 - 12 - 24 - 14:30 from..

2018 - 12 - 24 - 14:30 from..

I need that flash count how many lines are in txt file, in this case 7 so i need to add 7 childs and fill textfields with information to every child. So i need 7 childs with different information in text fields from txt file. But in screen i want to see just 4 and others i want to see just when i scroll. Maby have some ideas how can i do that?

And i iff i add new line flash detects that and add another one child, if i delete line flash detects that and delete child.

?

Maby someone can help with this?

Dieses Thema wurde für Antworten geschlossen.

1 Antwort

Robert Mc Dowell
Legend
April 11, 2018

use the data raw from URLloader, split("\n")

the use a for loop

dalvydasv27776233
Inspiring
April 11, 2018

I use split('/n");

but how i tell him to count all line and i get one child with information from line.

but i need to count all lines

add in this case 7 childs with different information

Robert Mc Dowell
Legend
April 11, 2018

your dataResult.length count all lines.

then if the for loop just add your conditions to find the right line