How to get Active screen name in Char or Int?

From this post I tried but I still can compile the sketch.
https://forum.lvgl.io/t/how-to-get-name-of-the-active-screen/10698

I wanted to get something like 0,1,2,3,4,5
from active screen ui_Screen1,ui_Screen2,ui_Screen3,ui_Screen4,ui_Screen5