Information générale
Catégorie:
The Mere Mortals Framework
Jim,
I think I found the problem and it maybe a bug in the Framework. The error happens in the cGlobalDataEnvironment, here is the code:
IF EMPTY(this.cResource)
SET RESOURCE ON && error happens here
ELSE
luTemp = this.cResource
SET RESOURCE &luTemp
ENDIF
IF EMPTY(this.cResourceTo)
IF FILE(HOME() + "FOXUSER.DBF")
SET RESOURCE TO (HOME() + "FOXUSER.DBF")
ENDIF
ELSE
luTemp = this.cResourceTo
IF FILE(this.cResourceTo)
luTemp = ["] + luTemp + ["]
SET RESOURCE TO &luTemp
ENDIF
ENDIF
I think that the this.cResourceTo should be checked before you try to set the resouce on. The two If statements should be reversed like this
IF EMPTY(this.cResourceTo)
IF FILE(HOME() + "FOXUSER.DBF")
SET RESOURCE TO (HOME() + "FOXUSER.DBF")
ENDIF
ELSE
luTemp = this.cResourceTo
IF FILE(this.cResourceTo)
luTemp = ["] + luTemp + ["]
SET RESOURCE TO &luTemp
ENDIF
ENDIF
IF EMPTY(this.cResource)
SET RESOURCE ON && now its safe to turn the resource on
ELSE
luTemp = this.cResource
SET RESOURCE &luTemp
ENDIF
How about it Kevin is this a problem?
Ed
Précédent
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