#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    36
    Rep Power
    11

    Using a TListBox instead of an array of string?


    On several programs I see people that use hidden TListBox's instead of using an array of string. Does this make a difference in speed / size or anything? And if so is the difference miniscule?

    Comments on this post

    • JimmyGosling agrees
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Location
    Behind you
    Posts
    19
    Rep Power
    0
    in the digital age where we live, the memory problem are minuscule..
    I think is only an extetic problem

    array's are very usefull and "pratici" (maybe pratics) i don't know how to translate it in english :P)
    The only matter's if you declare and array [1..100] of char and you use only 5 array, the system alloc 100 memory zone.
    An listbox is bigger than array but the difference i think is minuscule.

    Ah..i've said it without know nothing about memory ^.^
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,592
    Rep Power
    4207
    Why use a TListBox, when all you need is a TStringList object. That's what I always use. After all, people only use TListBox.Items which is a TStringList object.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Location
    Behind you
    Posts
    19
    Rep Power
    0
    mmh..you don't seem like a silly man.. you are great
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    36
    Rep Power
    11
    Ok, thanks for the replies!

IMN logo majestic logo threadwatch logo seochat tools logo