Thread: Stringeling

  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.

Popular pages Recent additions subscribe to a feed