Results 1 to 2 of 2

Thread: List box - partial display of items

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    3
    Is it possible to display only a righthand part of a string in a list box?

    I have an array strings where the first 10 characters are an identifier and the remainder (11 onwards) are names.

    I want to be able to sort the listbox by identifier but only display the names.

    When I select an item, I want to be able to retreive the whole string including the identifier although only the name portion is being displayed in the list box..

    eg

    A$(1)="1234567890JOE BLOGGS"
    A$(2)="9876826527FRED SMITH"
    A$(3)="0000000292ANGELA JONES"

    I want the list box to display only the names but I need to retreive the whole string with numbers when I select an item.

    TIA

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Suggest ListView

    I this case, why no you use the ListView control. It much much better in GUi & manipulation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width