Re: File locking
Jean-Luc Arnaud <jean-luc-E/[email protected]>
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Organization | Centre Direct du Multimédia |
| Message-ID | <[email protected]> |
Ok, Arnaud, we don't talk about the same property, I was thinking to 'IsWriteable'. I didn't know 'Locked' and looked for 'IsLocked'! What a stupid guy! Thanks for your code sample, I have to test that because a file may be locked by itself or located on a locked volume. Thanks again. Jean-Luc Arnaud Le 20/05/2017 à 15:07, Marnaud a écrit : > Le 19 mai 2017 à 18:58 du soir, Jean-Luc Arnaud <[email protected]> a écrit: > >> It’s Read-Only, unless I'm wrong or we don't talk about the same property. > It’s definitively working on my side. > > Does this code compile for you? > dim f As FolderItem > > f=SpecialFolder.UserHome.Child("SomeFile") > > f.Locked=not f.Locked > Return True > _______________________________________________ > > Xojo forum: > > https://forum.xojo.com/ > _______________________________________________ Xojo forum: https://forum.xojo.com/