Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataEnvironment Methods?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00020842
Message ID:
00021134
Views:
47
>>>I have a form which use the data environment and AutoOpen is .T. and the form has data bound controls. If another users opens a table(s) contained in the DE of my form exclusively my form will not function. The problem is how do I trap this condition. I have reviewed the error event within the DE without success. I need a quick fix since I have many forms setup with the DE and AutoOpen=.T.. Please point me in the right direction if there is one. tia steve
>>
>>on error lErroflag=.t.
>>do form ... && your form called here
>>on error
>>if lErrorflag=.t.
>>**** your message (you can use AERROR() here)
>>endif
>
>Are there any issues related to resetting your original error handler? For example, should you reset your ON ERROR error handler in the INIT after the DE has successfully loaded? This is provided no Error Event handler is in place. I may have a couple of forms without error event handlers.
>
>I came up with this work around yesterday, but I thought is was too simple and may not work in all cases. Thanks for the input! Steve

Yes, you can reset ON ERROR in any place after DE. Surely, matured App will have more sophisticated error handler. I just tried to give an idea.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform