MaxHelmer Posted August 27, 2013 at 08:56 PM Report #522775 Posted August 27, 2013 at 08:56 PM Olá comunidade! Como eu faço para comparar um item selecionado em uma listboxA com o conteúdo da listboxB? O que eu quero fazer é: IF NOT item selecionado na listboxA = qualquer item da listboxB THEN listboxB recebe o ítem selecionado END IF
nelsonr Posted August 27, 2013 at 09:12 PM Report #522777 Posted August 27, 2013 at 09:12 PM Algo assim? If ListBox1.SelectedIndex >= 0 Then If ListBox2.FindString(ListBox1.SelectedItem) < 0 Then ListBox2.Items.Add(ListBox1.SelectedItem) End If End If
MaxHelmer Posted August 27, 2013 at 10:45 PM Author Report #522783 Posted August 27, 2013 at 10:45 PM Algo assim? If ListBox1.SelectedIndex >= 0 Then If ListBox2.FindString(ListBox1.SelectedItem) < 0 Then ListBox2.Items.Add(ListBox1.SelectedItem) End If End If Caro nelsonr, obrigado mais uma vez pela ajuda. Este código resolveu o problema.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now