Print? List

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jacobevans
    New Member
    • Aug 2007
    • 26

    Print? List

    I am trying to print a list to a caption. Say the list contained One, Two, and Three. When i click a command button the caption should say "One, Two, Three" Is there any simple way to do this? I tried some stuff with listindex but it didn't work. Thanks for any help.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by jacobevans
    I am trying to print a list to a caption ...
    Quite simple. Just do a For loop from 0 to one less than the count of items in the list (unfortunately, VB likes to start these things at zero rather than 1, just to be difficult). For each item, concatenate it to the label. (I'm assuming that "caption" means "label".)

    Comment

    Working...