Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Title, Author and Comments in .txt Files
Message
 
À
25/06/2002 11:01:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00672026
Message ID:
00672430
Vues:
17
This message has been marked as the solution to the initial question of the thread.
Pablo,

>Is it possible in Visual FoxPro to fill the Title, Author and Comments fields for a txt file?

Don't know how but this works even for .txt files:
oFilePropreader = CreateObject("DSOleFile.PropertyReader")
sFile = GETFILE()
oDocProp = oFilePropReader.GetDocumentProperties(sFile)

? oDocProp.Title
? oDocProp.Author
? oDocProp.Comments

oDocProp.Title = "New Title"
oDocProp.Author = "New Author"
oDocProp.Comments = "New Comments"

? oDocProp.Title
? oDocProp.Author
? oDocProp.Comments
You have to download a dsofile.exe from MS site: http://download.microsoft.com/download/office97dev/Utility/2/WIN98/EN-US/Dsofile.exe
Details can be found in Q224351.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform