I am really confused with all these different string types
...
I'm using Borland C++ Builder 5.
My problem is:
I have a Memo control which is filled like this:
Note: in front of every number there is a space.
Now I want to parse this list and get every numer by itself. I've tried this (txtCiphertext is the Memo control):
PHP Code:
AnsiString strBuffer;
for (int i = 1; i <= txtCiphertext->Lines->Count; i++)
{
strBuffer = txtCiphertext->Lines[i];
}
But I get this error: E2285 Could not find a match for 'AnsiString:
perator =(TStrings)'
How can I convert a TString to a AnsiString?
I have an other idea how to get the numbers: Find a space, read x characters untill there is a carriage return/line feed. But for this I would need a function like InStr() in VB, where I can specified the position where it shall start to search...