Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping error 1152 ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Trapping error 1152 ?
Miscellaneous
Thread ID:
00798426
Message ID:
00798426
Views:
49
I am trying to create a generic routine that my oApp global app object can run in any app that needs to respond to close down smoothly after a user has left the app open and gone home for the day.

In response to time & or a file being present on the network the app will attempt to close all files & clean up the environment and then exit the app thereby allowing file maintenace on the server to take place.

My problem is this. It seems that error 1152 is not trapped as an exception in a try/catch/endtry block and so if there is a form or forms open and there are listboxes,comboboxes with rowsource of alias or fields, this error occurs but a vfp error messagebox is displayed and stays there until a user dimisses it.

I relealize that I could iterate through all forms and all controls with a rowSource property and handle this but I was wondering if there is another way to suppress/trap these types of exceptions ?

TIA

Greg
Greg Foote
Software At Work, Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform