Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update from field repository problem
Message
From
24/01/2001 11:28:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Stonefield
Title:
Update from field repository problem
Miscellaneous
Thread ID:
00467914
Message ID:
00467914
Views:
53
When I add a field to an existing table from the field respository, about 80% of the time I get the following upon clicking the save button. (rest of the time the routine works without error)


CALL STACK
basemgr.validate
sdtdbcxmgr.ovfemanager.validate
sdtdbcxmgr.validate
frmtd.cmok.click


CODE IN TRACE WINDOW
* Validate all the fields for the table.
if 'F' $ This.cObjectTypesHandled
for lnI = 1 to fcount(lcAlias)
lcField = field(lnI, lcAlias) &&**** Error occurs on this line*****
.EnsureOneObject(lcParent + '.' + lcField, 'Field', ;
lcDBC)
.ValidateField(lcParent, lcAlias, lcField, llFree)
next lnI
endif 'F' $ This.cObjectTypesHandled


MEMORY
lnI - always has the value 2
lcAlias - has the name of the cursor being udpated, e.g. CurrentAudit

Problem seems to be that the cursor referred to by lcAlias has been closed.
I go to the command window and issue the commands

SELECT 0
USE CurrentAudit

then I resume the program and it completes successfully.

Any ideas why I am getting this error?
Next
Reply
Map
View

Click here to load this message in the networking platform