What is the correct way to point to an item in TwwListBox?

Comments

3 comments

  • Roy Woll

    I can't reproduce your problem with your code. Please provide a simple project which has the problem.

    0
    Comment actions Permalink
  • Felix Castillo

         wwListBox1.ItemIndex:=wwListBox1.Items.GetItemIndexByValue(wwEdit1.Text);
         wwComboEdit1.ItemIndex:=wwListBox1.Items.GetItemIndexByValue(wwEdit1.Text);

     

    I have tested the upper code and IT WORKS, I get printer names from the TPrinter unit, I will see if the problem is with the text.

    I am sorry and thank you for your support!

    0
    Comment actions Permalink
  • Felix Castillo

    I mean, I tested with manually typed items and it works, but not with the printer names supplied by TPrinter unit, I will deal with TPrinter.Printers[x].Device text and make the necesary changes.

    Thanks again!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk