Get last line from a table or add line to the top of the table

jcknick

Client
Регистрация
10.05.2013
Сообщения
154
Благодарностей
9
Баллы
18
Hi guys,

I am working on a script that should allow me to compare the updated post title to the last post title I already have in the table.

I have a variable file name, so that the table changes the source on each iteration. Though I have a weird problem.

When I select - "Get line" from a table and specify the number to "Last" (http://screencast.com/t/ZtyvaGpz1C), it works the first time I specify this setting, though after restarting the project - this function fails.

How do I get it to work?

Another option that could work is if I could add a line to the top of the table and just get the First line from that table. Question is - how :-)

Thanks in advance.
 

Dimionix

Moderator
Регистрация
09.04.2011
Сообщения
3 068
Благодарностей
3 122
Баллы
113
  • Спасибо
Реакции: jcknick

jcknick

Client
Регистрация
10.05.2013
Сообщения
154
Благодарностей
9
Баллы
18
Thank you Dimionix, it sorta worked, but after reloading the project, the problem repeated itself:

http://screencast.com/t/t53EIM3nRat - the "Get line" is set to "end"

I'm not sure how relevant this is, but I am also trying to use "dynamic" table sources, meaning that I assign the file name and then use it as variable in "File path":

http://screencast.com/t/5fAKzBP96DXT

As you can see, the table knows where to look but "Get line - end" doesn't seem to work.

I also noticed that there are some sort of "different behaviors" with different file extensions. For the time being .txt works best for me - the first time around though :/

I also tried a workaround with "Get lines count" for the table, to use the "last number" for the "Get line" function, and this one didn't work as well - the result I got was - Line count = 0
 
Последнее редактирование:

jcknick

Client
Регистрация
10.05.2013
Сообщения
154
Благодарностей
9
Баллы
18
  • Спасибо
Реакции: rostonix и Dimionix

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)