lifesupport
Programmer
This code use to work for years on a network from VFP versions 6-9. It is currently on VFP 9 and was working until recently. Now, the data files on the network can't be seen. I get an error that they don't exist. I changed all network permissions to have full access, but still the same error message. The networkk runs thru the internet.
defnwdrive is the variable that holds the name of the network drive and folder
pchome is the variable that holds the name of the local machine
If type('defnwdrive')="C"
If pempty('DEFNWDRIVE')
Release occstate
Public occstate
Stor alltrim(pchome)+'occstate' TO occstate
Else
Release occstate
Public occstate
Stor alltrim(defnwdrive)+'occstate' TO occstate
Endif
Else
Release occstate
Public occstate
Stor alltrim(pchome)+'occstate' TO occstate
Endif
If not used('occstate')
Sele 0
Use &occstate again shared noupdate ALIAS occstate
Endif
Sele occstate
Thanks
defnwdrive is the variable that holds the name of the network drive and folder
pchome is the variable that holds the name of the local machine
If type('defnwdrive')="C"
If pempty('DEFNWDRIVE')
Release occstate
Public occstate
Stor alltrim(pchome)+'occstate' TO occstate
Else
Release occstate
Public occstate
Stor alltrim(defnwdrive)+'occstate' TO occstate
Endif
Else
Release occstate
Public occstate
Stor alltrim(pchome)+'occstate' TO occstate
Endif
If not used('occstate')
Sele 0
Use &occstate again shared noupdate ALIAS occstate
Endif
Sele occstate
Thanks