Access pages id an inactive page

Hello,
I access the ‘page id’ in my project. However, this means that if I change the order of the page, I also have to adapt my code. Is there any way to access the page id?
e.g.: **n0.val=pageSetup.id** ( I know, it doesn’t work like this :laughing:)

Greetings
Manni

Use the page name instead.

hello elf,
Unfortunately that doesn’t work. I would like to cache a page ID in a global variable for later processing at the touch of a button.
At the moment I enter this hard:

nextPage.val=5

So that I don’t always have to touch the programme code when I change the page sequence, I would like to use e.g:

nextPage.val=pageSetup.id

Instead of changing page numbers or removing pages, simply put “page (name of replacement page)” in that page’s Preinitialize Event. Just add new pages and don’t delete the old. You can also edit any controls that activate old pages. No matter how you do it, you’ll have to edit some code for the changed numbers.

Hello elf,
ok, thank you