vendredi 9 septembre 2016

How to check if the tag of a button is the same of the text of a label when clicked, the text of the label is from a array

-Picture what this is about-

So I have an array that contains names of counties. The label's text (see picture '2') has the text of the value of the array. The button (see picture '1') has the tag "Drenthe", which is the same value as the array.

My question is: how do i check if the tag of the button which i click is the same as the label text. Can this be done with an if statement? If so how?

Aucun commentaire:

Enregistrer un commentaire