>Do most of you use dataenvironments attached to forms for opening your data. I like the functionality and the manuals suggest that it use low-level file opening so the opening is speeded up.
No, it still does a USE. But, if the table is already open, it does a USE AGAIN, which will be faster. One way to speed up form instantiation is to open all the tables when you launch the application.
>
>My problem with this is error handling. If one of the files is missing or opened exclusively than I wish to allow the user the option of retry-ing. I capture the first error and then offer them a chance to retry or cancel.
>
>If you issue a retry, it bypasses the dataenvironment and goes directly into the form. If I do thisform.Dataenvironment.opentables() then it works but if there is still an error, since I am in the error method of the data environment when I issue retry, then error() returns 0 and I can not figure out how to tell if the tableopen worked or failed.
>
>Am I approaching this wrong or is there something I am missing.
>
>Any help would be appreciated.
How is your error handling setup? Are you using a generic ON ERROR or the Error event in the DE or for the cursor in the DE?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer