Welcome
Sorry i think my post was confusing, i already tried that, what i meant in this post is that variables (global or local) doesn't work inside that dialog or the indexes [] ( i checked that that they are an integer), only constants works which are useless for getting the last element of an...