I want to change the program number of the robot by int type variable. How can I do this

I want to change the program number of the robot by int type variable. How can I do this