Not exactly garbage. You're converting all the items in the listbox to a single string. Newline is the separator.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.Originally posted by darketernal
listbox manipulates and adds a newline (||) garbage to it.
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
He darketernal,
Van harte gefeliciteerd met je 22ste verjaardag.
( 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.
This gave a clean string without the garbage.Code:SpinEdit1->Value = ListBox1->ItemIndex; Edit4->Text = ListBox1->Items->Strings[CSpinEdit1->Value];
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.