General information
Category:
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only