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 |