` Printed Icetips Article

Icetips Article



ABC: Updating file buffer on a form
2000-12-31 -- Rick Martin
 
Newsgroups: topspeed.products.c4

> Looking at the documentation, I don't see any easy way to get to that
> saved buffer to update it myself after the relate:file.update(1) is
> called.  The savebuffer and restore buffer methods look like I would be
> inviting a mess if I were to use them.

After you do your .Update add:

Self.Primary.Me.RestoreBuffer(Self.Saved,0)
Self.Saved = Self.Primary.Me.SaveBuffer()

This will reset the history buffer that is used to check for changes.

Note: this has to be in one of the Window Manager methods because Saved is
a protected method.

HTH,
Rick



Printed November 21, 2024, 6:44 am
This article has been viewed/printed 35385 times.
Google search has resulted in 6 hits on this article since January 25, 2004.