Hi,

I have a text viewer that takes the contents of a database, places it in a text file and displays it in a OLE control.

However, when the text file is being generated from a database with lots of records, it is taking a while to display and giving the users the impression that the system has crashed.

Here is the code that is taking a while:

lc_text = filetostr(lc_filename) && This line is ok
olecontrol1.text = lc_text && This line takes a while


Does anyone please have any ideas that could help speed this up.

Thanks,

Simon