main logo
Subject: codebook 6.1. return of an old bug?
Author: graeme thomson
Posted: 2001/03/08 05:03:52
 
View Entire Thread
New Search


Setting of Resource:


*-- 2. .cResource = "ON"
*-- .cResourceTo = ""
*-- RESULT: RESOURCE is set ON and HOME() + FOXUSER.DBF is used if
*-- it exists.
*-------------------------------------------------------

Above is protocol.
HOWEVER if .cResource = "ON" and .cResourceTo = ""



IF SET('RESOURCE') == "ON"
IF EMPTY(This.cResourceTo)
SET RESOURCE OFF

It switches off again here, not to HOME() + FOXUSER.DBF

This was discussed and corrected in a previous thread.

the simplest change is:
IF !EMPTY(This.cResourceTo)
:
:
ENDIF

There is no need for the SET RESOURCE OFF command as we have already made our decision to use the Foxpro file by this point.
 
©2001 graeme thomson
<-- Prior Message New Search Next Message -->