Can we get a page's id from its name?


I’m wondering if it’s possible to get a page’s id from its name. I’m working on a project and it would be quite useful because I cant get the “page” function to recognize text (i.e page page_to_load.txt is an error) and I would like to go to pages whose number are stored in global variables without having to rewrite the code each time I change the order of the pages / add new pages.

I know dp gives the current page’s id, is there something similar ?

The variable not on the current page needs to be global. This code works for me:

cov n51.val,pageNumberPad.t0.txt,0
page pageNumberPad