Set file to Read-Only and back

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Had a look at AGraham's FilesEx, but couldn't figure out from the help how to set a file to Read-Only and then back to normal, not Read-Only.
Could somebody tell how that is done?

RBS
 

Cableguy

Expert
Licensed User
Longtime User
Use the getatributes method to get the file current atributes and use the same format, changing the atributes value, in the setatributes method...
I also advise you to use a DoEvents keyword between to consecutives setatributes...
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
Could you post the 2 lines of code? I got the general idea, but couldn't figure it out.

RBS
 

RB Smissaert

Well-Known Member
Licensed User
Longtime User
:( Unfortunately, as noticed earlier, toggling the Read-Only flag on the device doesn't make my SQLite file go fast. It does when I do it on the desktop.
At least I learned the Bitwise manipulation now.

RBS
 
Top