Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alias Not Found
Message
De
10/01/2000 15:40:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Alias Not Found
Divers
Thread ID:
00315735
Message ID:
00315735
Vues:
56
Kevin,

I found the problem. The cDataEnvironment class always returned .F. because the metadbf table info was wrong. Although the dataenvironment was instanatiated somehow, the object reference was not being created.


*---------------------- 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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform