*---------------------- Location Section ------------------------
* Library: CDataEnv.vcx
* Class: CDataEnvironment
* Method: Init()
*----------------------- Usage Section --------------------------
*-------------------------------------------------------------
*-- Get the name and location of the default database for this
*-- data Environment
*-------------------------------------------------------------
IF This.lCheckDefaultDatabase AND TYPE('gl_MMDEBuilder') != 'L'
this.cDefaultDatabase = this.GetDefaultDatabase()
IF EMPTY(this.cDefaultDatabase) OR !FILE(this.cDefaultDatabase)
* =ErrorMsg(CANNOTFINDDATABASE_LOC + " " + this.cDefaultDatabaseName)
RETURN .F.
ENDIF
ENDIF
I must have traversed up and down the calling stack for two days before I opened my preferences and noticed that the path to my dbc was '\prod\compile\newkirk\data\newkirk.dbc' instead of 'g:\prod\compile\newkirk\data\newkirk.dbc'. I don't know how the cursors managed to load correctly, but the calling stack kept returning .f. for This.oDataenvironment. Because the errormsg was commented out, I never saw the error. Perhaps you could put the error back in so that others won't have to go through this?