Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check user's rights
Message
 
 
To
29/03/2007 23:04:18
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01210145
Message ID:
01210217
Views:
32
I'm sorry. Somehow I forgot, though I gave this link just recently. See
How to change file attributes programmatically FAQ #15763

It may apply to a folder too.

>Naomi
>i tried that example from Devguru but throws error ie. IF condition
>
>error is "Data type mismatch (Error 9)"
>line of code the generates error
>
>if Not demofolder.Attributes And 1 Then
> Response.Write "The folder is Read/Write."
>Else
> Response.Write "The folder is Read-only."
>End If
>
>easiest solution seems to me is creating a dummy file if that throws error that means user does not have enough rights
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform