hi @Gean_ST
its a little difficult to answer because there is not a lot of details on how the app is built which makes a big difference.
Are multiple people using this App and you want to make sure the Counter is different for each person, so a number cannot be used by 2 people?
Are you generating Documents within the app and only 1 at a time ( a loop etc?)
I would simply create a variable Set(Counter, 0);
Then in whatever code you use to generate the document, after its done do: Set(Counter, Counter +1);
Do you really need a label (as in you need to see this counter number on the screen???
If so its not the counter the variable is, and you just set the Text to Counter or Text(Counter) and bingo you see it.
If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others
Cheers
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey