Article View: comp.windows.interviews
Article #1530Problem with StringBrowser in InterViews 2.6
From: August Wehrmann
Date: Wed, 26 Jun 1991 15:31
Date: Wed, 26 Jun 1991 15:31
33 lines
1654 bytes
1654 bytes
Hi, I've been having the following problem with the StringBrowser in
InterViews 2.6.
StingBrowser* items;
char* oldString = items->String(index);
strcpy(newString, "-> ");
strcat(newString, oldString)
items->Insert((const char*) newString, index);
items->Remove(index+1);
This code is intended to insert a "-> " in front of a given string and
replace it in the StringBrowser.
I've used the Insert(index), Remove(index+1) as a means of doing the
replace since there is no Replace
member function in the StringBrowser class.
The problem is that on subsequent manipulations of the same locations
(and especially at index+1) I'm
getting run-time errors which seem to indicate that the list
manipulation done by Insert/Remove is done
incorrectly.
Has anyone else had this problem? Can anyone suggest a solution? Is this
an InterViews bug?
Any help would be appreciated.
August Wehrmann wehrmann@gonzo.mpr.ca
Software Systems Division 8999 Nelson Way, Burnaby, B.C.
MPR Teltech Ltd. 293-6123
Technical Details
Message-ID:
<1991Jun26.153157.17251@mprgate.mpr.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!atha!aunro!alberta!brazeau.ucs.ualberta.ca!unixg.ubc.ca!ubc-cs!mprgate.mpr.ca!gonzo.mpr.ca!wehrmannShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!atha!aunro!alberta!brazeau.ucs.ualberta.ca!unixg.ubc.ca!ubc-cs!mprgate.mpr.ca!gonzo.mpr.ca!wehrmann From: wehrmann@gonzo.mpr.ca (August Wehrmann) Newsgroups: comp.windows.interviews Subject: Problem with StringBrowser in InterViews 2.6 Keywords: help, bug Message-ID: <1991Jun26.153157.17251@mprgate.mpr.ca> Date: 26 Jun 91 15:31:57 GMT Sender: news@mprgate.mpr.ca Reply-To: wehrmann@gonzo.mpr.ca (August Wehrmann) Organization: Microtel Pacific Research Ltd. (MPR) Lines: 33