filling a ListBox with variables, not just text?

This is a discussion on filling a ListBox with variables, not just text? within the C++ Programming forums, part of the General Programming Boards category; I was wondering how you would go about filling a ListBox with a bunch of variables, instead of just lines ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    11

    Question filling a ListBox with variables, not just text?

    I was wondering how you would go about filling a ListBox with a bunch of variables, instead of just lines of text, using the Items component. something like...

    ListBox1->Items=names[]

  2. #2
    Registered User
    Join Date
    Nov 2005
    Posts
    673
    If your talking about putting numbers and stuff into the listbox, then you just convert the variables into a string, and display it as you normally would. Your question is kind of vague though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing variables to a text doc?
    By Cielo in forum C++ Programming
    Replies: 3
    Last Post: 03-18-2008, 05:10 AM
  2. Inserting text into listbox
    By twomers in forum Windows Programming
    Replies: 6
    Last Post: 09-02-2007, 10:43 PM
  3. Removing text between /* */ in a file
    By 0rion in forum C Programming
    Replies: 2
    Last Post: 04-05-2004, 09:54 AM
  4. Small HTML question
    By Thantos in forum Tech Board
    Replies: 4
    Last Post: 12-29-2003, 12:37 AM
  5. Replies: 1
    Last Post: 07-13-2002, 06:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21