I'm completely new to programming in LiveCode and in general so please bear with me if my questions are very basic. I read through the LiveCode user manual, but it's not so easy to grasp some things and learn from it.
I created a stack to combine text from 3 different files and to show each line of text at a time. To show the first line and the last line was easy, but to get the NEXT and PREVIOUS buttons to work is not easy - I'm missing something.
for the NEXT button:
Code: Select all
global text2display
on mouseUp
put fld "showingLine" into currentLine
add 1 to currentLine
put currentLine into fld "text2display"
end mouseUp
for the PREVIOUS button:
Code: Select all
global text2display
on mouseUp
put fld "showingLine" into currentLine
subtract 1 from currentLine
put currentLine into fld "text2display"
end mouseUp
I'm attaching the stack.
Thanks for any help with this.
keram