TIP: Click on subject to list as thread! ANSI
echo: delphi
to: BART BROERSMA
from: STEVE BATSON
date: 1997-04-02 12:35:00
subject: Trapping Exceptions from TMemo

BB> This however will not solve the problems of
BB> - files > 32K
BB> - disk read errors
BB> - other failures in reading the file.
BB> What's more, I dont want the users to see this nagging default 
BB> exceptionhandler.
BB> Should I replace the LoadFromFile method with my own ??
If I can add my 2 cents...The LoadFromFile method is not the only way to get 
text into a TMemo component. You could write code that will populate it up to 
it's limit using old fashioned File I/O techniques. If for example you have a 
64K file, you could put 32K into the TMemo and leave the rest on Disk or in a 
buffer until the data is needed, then clear the TMemo and tranfer the new 
block in. 
Steve
--- FreeMail 1.07b
(1:203/21)
---------------
* Origin: The Visual Programmer's Workshop - N.H., Ca (916)338-3230 *

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.