Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Edit box paging

0 views
Skip to first unread message

Matt Wensley

unread,
Oct 5, 2008, 4:07:42 AM10/5/08
to
Hi, I hope this is the right place to ask this.

I have an edit box into which the user enters data, this data is critical
but can only be saved into the database when all is entered. It can take up
to 4 hours to enter all the data.

Currently the data is saved to a temporary file in case of system crash
periodically, what I want to do is somehow page the edit box contents to a
file as the data is entered.

How could I do this?

Thanks


st

unread,
Oct 5, 2008, 10:08:30 PM10/5/08
to
"Matt Wensley" <ma...@ac4.biz> сообщил/сообщила в новостях следующее: news:eu6dnetKgpdO6HXV...@posted.plusnet...
I'm not sure that this is a good idea. Imagine that operator has changed the text in the first lines, therefore changing the text length. It will cause the most of text pages be completely overwritten.

But as your proposition, you can check text length and caret position either each time text changes, or (preferably) by timer, and store to a file just a portion from the topmost edit position.
0 new messages