This following is not valid given the switch expression:
case nP > 1:
The good news is you can replace it with "default" and it should work OK.
Hi thanks for response but I changed the "np>1" to default still I do not get to see the app.alert inside of do... while loop...
Why not use a for loop to go thorugh your pages?
You can use the switch within the for loop.
Some comments within your code will show others what you are trying to accomplish.