Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read him his rights
Message
De
01/05/2001 19:49:00
Larry Rix
Larry Rix & Associates, Inc.
Westminster, Colorado, États-Unis
 
 
À
01/05/2001 11:27:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00501983
Message ID:
00502296
Vues:
17
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform