- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to add a string to an already existing line of a ListBox. When I compile, I am given the error "Structure required on left side of "." or ".*". The line of code that I was trying to use for this is:
(ListBox1->Items.Strings[0])+=(ListBox1->Items.Strings[0]+"ANSISTRING");
Could someone help me with this code?
Thanx
(ListBox1->Items.Strings[0])+=(ListBox1->Items.Strings[0]+"ANSISTRING");
Could someone help me with this code?
Thanx
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
(ListBox1->Items.Strings[0])+=(ListBox1->Items.Strings[0]+"ANSISTRING");
try
ListBox1->Items.Strings[0] += "ANSISTRING";
dont make your code more difficult than it has to be... if the Items.Strings are in fact type String or string.
or try
ListBox1->Items.Strings[0].append() method may prove more bennificial in readability.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page