Many thanks for your help Gustavo to solve my problem, I've tested the code and it works very well, excuse my ignorance but it is possible to do the same with "checkboxbar" because I do not work with this command, that command is used for anything else?
Thanks a lot again.