Hi, Cetin
Thanks very much for the help and the sample code. I did want to avoid putting code in all my forms to get around this problem (there are loads of them) but, from the 3 replies I've received, it seems that this is all I can do. It's a shame I can't put the code in my form class, as it doesn't have a DE. Your example would seem to be the least disruptive as it only requires the "UpdateDE( this)" putting in the .BeforeOpentables().
Yes, I am using private data sessions.
I have a few questions about the code, if you wouldn't mind:
1) In the MyAppClass.prg you have the line
> This.cAppDataPath = arrDataLoc
What is "arrDataLoc"? I'd assumed it's one of those define fields from a .h file but I've no idea which.
2) As my databases are in 3 different sub-folders I can't just assert a database folder. It depends on which sub-system the user wants. To further complicate matters, some forms use tables from more than 1 database (sometimes all 3!). Can you think of a simple tweak to your code that would accommodate this (I guess I'll gert there eventually but you might have the answer to hand)?
Thanks for your continuing help.
Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.