Hmmm...that's odd. Zip and send your classlib to me offline and I'll look at it if you wish.
--Michael
Michael J. Babcock, MCP
Founder, Central PA Visual Foxpro Users Group
mbabcock@cpvfug.org
http://www.cpvfug.org
Well, you can explore the possibility of using triggers on table1, but do you really want that? I may be misunderstanding you, but it sounds like you want automatic updates of other related tables. If that's accurate, check out triggers in VFP help.
Also, when updating your tables, consider...
If in multi-user scenario, you'll need to temporarily perform an RLOCK on the lookup table that holds the sequence counter to ensure that other users don't get the same number.
My adaptation:
FUNCTION NewKeyID
LPARAMETER tcAlias
* tcAlias is the name of the table which needs a unique key...
To use the "Delayed Instantiation" technique (which merely says don't create the containers/controls under you really need them--for example, the controls on pages that are not initially showing don't need to be instantiated until the user navigates to that area), say your screen...
Here's a snippet on how to manipulate INI files/values (also derived from Markus Egger's Adv OOP book):
* read the value from the INI file
local lcValue, loINI, lnError
loINI = NewObject("oldinireg",home() + "ffc\registry.vcx")
lnError =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.