wehrmann@gonzo.mpr.ca (August Wehrmann) (06/26/91)
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