General information
Title:
Update from field repository problem
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only