Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Vfp 6.0 and Excel
Message
 
À
08/02/2001 09:19:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00473907
Message ID:
00473933
Vues:
19
>I have an app that allows users to save their data to an myfilename.CSV. Can anyone tell me how I can make that particular file read only so that they can't make anychanges tothe data once they bring that file up in Excel.?

Try something like this

lnAttributes = 32 + 1 && archive + read only
* 32 = archive, 1 = read only, 2 = hidden, 4 = system
lcFileName = 'test.csv'

declare integer SetFileAttributes in win32api ;
string cFileName, ;
integer nFileAttribute

lnResult = SetFileAttributes(lcFileName, lnAttributes)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform