Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read him his rights
Message
From
01/05/2001 19:49:00
Larry Rix
Larry Rix & Associates, Inc.
Westminster, Colorado, United States
 
 
To
01/05/2001 11:27:41
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00501983
Message ID:
00502296
Views:
18
I don't know of a VFP function that will do what you ask. However, my assumption is that you are referring to network user rights. Outside of an API function, the only method I know of is:


****************************************************
function qlUserHasRightsTo

lparameters tcPath

local llAbleToOpen, lcTestFile, lnFileHandle

lcTestFile = tcPath + "\" + sys(3)
lnFileHandle = fcreate(lcTestFile)
llAbleToOpen = (( lnFileHandle > 0 ))

if llAbleToOpen
fclose(lnFileHandle)
erase(lcTestFile)
endif

return llAbleToOpen
****************************************************

The idea being, of course, that if you can open a low-level file for read/write access in the target directory (no matter what the system is -- Linux, etc), then your user probably has the proper rights that will allow your VFP app to run successfully.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform