Am trying to take one character at a time from one AnsiString and put it in another with an aim of creating scrolling text.
for(i = 0; i < displaylength; i++)
{
Text1[startposition] = Text2[startposition++];
if( startposition >= Text2.Length() ) {
startingposition = 0;
return;
}
}
Form1->Label1->Caption=Text1;
I got this example from the help. but although it runs it causes a small crash.
What am I doing wrong?
Mike
for(i = 0; i < displaylength; i++)
{
Text1[startposition] = Text2[startposition++];
if( startposition >= Text2.Length() ) {
startingposition = 0;
return;
}
}
Form1->Label1->Caption=Text1;
I got this example from the help. but although it runs it causes a small crash.
What am I doing wrong?
Mike