Hai Frnds,
I'm working on displaying text repeatedly but I'm facing trouble wid code.
I'm hereby including my code.....
TInt maxOnScreen = 20; //max characters in on screen
TInt maxLength = 65; //length of the file
if (iCounter > maxOnScreen)
{
TInt readFrom = iCounter-maxOnScreen;
if(readFrom <= maxLength)
{
file.Read(readFrom,txt); // file contains text which need to display
text.Copy(txt);
fg=ETrue;
DrawNow();
iCounter++;
}
else
{
iCounter=1;
file.Read(txt,iCounter);
text.Copy(txt);
fg=ETrue;
DrawNow();
iCounter++;
}
}
else
{
file.Read(txt,iCounter-1);
text.Copy(txt);
fg=ETrue;
DrawNow();
iCounter++;
}
It is displaying continuously only after the completion of the whole sentence but we need to scroll without any empty space(continuous loop).
Can anyone please tell me the piece of code to include.
Thanks in advance.....

Reply With Quote

