Information générale
Titre:
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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement