PRB: Cannot Trap for Error #1739ID: Q142287 3.00 3.00b WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSChanging a property of a Cursor or Relational Object correctly initiates error #1739 "Property setting will not take effect until data environment reloaded." Unfortunately, the error cannot be trapped with an Error Event nor an ON ERROR command.
WORKAROUNDAvoid any possibility of getting the error. Always unload the Data Environment before changing the property. To unload the Data Environment, use the following steps to initiate the CloseTables method of the Data Environment: 1. Create a new property of the form called "DataLoad" with an initial 2. Inside the OpenTables method, include the following code:
3. Inside the CloseTables method, include the following code:
4. Use the DataLoad flag to check to see if the Data Environment has been
STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe following chart is a listing of all the current properties for the Data Environment, Cursor, and Relation objects. If the Data Environment has been loaded with the OpenTables method, the chart will show what will occur if an attempt is made to change the property. Although Error #1739 will occur for many of the Cursor and Relation objects, the value of the property will change and be in effect the next time the Data Environment is loaded.
Cursor Object
Relation Object
Steps to Reproduce Behavior1. Create a new form. 2. Add any table to the Data Environment of the form. 3. In the Load event for the form, type the following:
4. Run the form.
5. In the Command window, type the following:
6. The ON ERROR routine does not activate. A FoxPro Error Message is
Additional reference words: 3.00 3.00b VFoxWin
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral
|
Last Reviewed: January 16, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |