Hi All;
I've written two forms, 'ledgers' and 'Signin' in vfp 6.0. They both use the same class library call as:
if !used('__Site')
if file(_local)
use _local in 0 again alias __Site shared
else
messagebox("[csite.init] Missing system file c:\system\Loc_Site.dbf")
return .f.
endif
endif ( !used('__Site'))
Both forms use private datasessions. The above code is called in the beforeOpenTable event of the dataenvironment of the form.
My staff is in the habit of using ms windows to open signin on the desktop, and rather then closing it, simply minimizing it and then opening ledgers on the desktop. When ledgers is opened,
"if !used('__Site')" is true, and "if file(_local)" is true, but
"use _local in 0 again alias __Site shared"
completely bombs out reporting:
"File Access is Denied"
Please help anybody!
Thanks,
alan
I've written two forms, 'ledgers' and 'Signin' in vfp 6.0. They both use the same class library call as:
if !used('__Site')
if file(_local)
use _local in 0 again alias __Site shared
else
messagebox("[csite.init] Missing system file c:\system\Loc_Site.dbf")
return .f.
endif
endif ( !used('__Site'))
Both forms use private datasessions. The above code is called in the beforeOpenTable event of the dataenvironment of the form.
My staff is in the habit of using ms windows to open signin on the desktop, and rather then closing it, simply minimizing it and then opening ledgers on the desktop. When ledgers is opened,
"if !used('__Site')" is true, and "if file(_local)" is true, but
"use _local in 0 again alias __Site shared"
completely bombs out reporting:
"File Access is Denied"
Please help anybody!
Thanks,
alan