> *------------------------- > *--- Build the USE command > *------------------------- > IF NOT USED(This.Alias) && Don't reload aliases > lcAlias = IIF(EMPTY(This.Alias),'',' ALIAS ' + This.Alias) > lcNoData = IIF(This.NoDataOnLoad, ' NODATA', '') > lcExclusive = IIF(This.Exclusive,' EXCLUSIVE', ' SHARED') > > lcUseCmd = 'USE ' + This.CursorSource + lcAlias + ; > lcNoData + lcExclusive + ' IN 0' > > &lcUseCmd > > ENDIF >I think I have an idea of what's going on here. When a dataenvironment is first created everything is fine. If the dataenvironment is edited, the cursor objects get corrupted somehow. If I remove all the cursor objects and re-add them, everything runs fine again. I havn't had time to trace what's going because of pending deadlines, but this is a good heads up to find the problem.