hi
i have this:
what should i do to search & put the, for example, 2=is into the variable another? the length of the ansistring test is variable.Code:AnsiString test = "\1=this \2=is \3=all \4=test";
AnsiString another;
thanks a lot
Printable View
hi
i have this:
what should i do to search & put the, for example, 2=is into the variable another? the length of the ansistring test is variable.Code:AnsiString test = "\1=this \2=is \3=all \4=test";
AnsiString another;
thanks a lot
You can get a substring and check for equality, or convert it to a C or C++ string and functions for manipulating and comparing them.
Get rid of the Borland compiler specific AnsiString and use the C++ std::string instead.
I think you will find it much more useful.
thanks a lot for helping.
however i used the ansistring pos function to search for the particular strings and it all worked well
thanks again