Author Topic: Lua - nspire - page/documents  (Read 3847 times)

0 Members and 1 Guest are viewing this topic.

Offline blauemauritius

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Lua - nspire - page/documents
« on: June 30, 2012, 03:31:30 pm »
Hello,

i want to program following with lua on my nspire: I have a main page (1.1) and a menu with two options. If i select option 1, i will have three other pages (1.2 , 1.3 , 1.4). If i select option 2, i will have two other pages (1.2 , 1.3).

My questions are: Is it possible to create or add a new page with lua? Or is it possible with lua to delete the content of a page?

Thank you very much.

Blauemauritius

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Lua - nspire - page/documents
« Reply #1 on: June 30, 2012, 03:49:28 pm »
You can not add/remove pages.
However, you can run a Lua script in each page and communicate using [lua]var.store[/lua] and [lua]var.monitor[/lua].

Offline blauemauritius

  • LV2 Member (Next: 40)
  • **
  • Posts: 25
  • Rating: +0/-0
    • View Profile
Re: Lua - nspire - page/documents
« Reply #2 on: June 30, 2012, 03:57:40 pm »
Thank you. I will try it.