Stringeling

This is a discussion on Stringeling within the C++ Programming forums, part of the General Programming Boards category; Originally posted by darketernal listbox manipulates and adds a newline (||) garbage to it. Not exactly garbage. You're converting all ...

  1. #16
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Originally posted by darketernal
    listbox manipulates and adds a newline (||) garbage to it.
    Not exactly garbage. You're converting all the items in the listbox to a single string. Newline is the separator.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  2. #17
    Registered User darketernal's Avatar
    Join Date
    Sep 2001
    Posts
    41
    Undo separator?

  3. #18
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680
    He darketernal,

    Van harte gefeliciteerd met je 22ste verjaardag.

  4. #19
    Registered User darketernal's Avatar
    Join Date
    Sep 2001
    Posts
    41

    Talking

    Dank u Zeer

  5. #20
    Registered User darketernal's Avatar
    Join Date
    Sep 2001
    Posts
    41
    ( i solved it like this ) *take in context it's C++ Builder*


    Since i had no idea how to (mouse click is the listbox value) i had to figure out how i could assign (as doggiesnot stated) ListBox1->Items->Strings[i] , Getting [i] was very difficult,but it was the right choise.

    My code became the Following

    Added 1 CSpinEdit1.

    Code:
    SpinEdit1->Value = ListBox1->ItemIndex;
    Edit4->Text = ListBox1->Items->Strings[CSpinEdit1->Value];
    This gave a clean string without the garbage.

    So instead of trying to delete the separators and since i invested much time in getting code trying to erase newline's , i ditched that idea did like above, and came to a solution.

    Thank you so much. And also for everyone elses views in this.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

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