Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Write the RevisionNumber Field of a Document?
Message
 
To
07/01/2008 15:55:48
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01280033
Message ID:
01280041
Views:
9
>Lots of articles show how to retrieve the RevisionNumber...
>Like: http://www.microsoft.com/technet/scriptcenter/resources/qanda/oct04/hey1001.mspx
>
>But I can't find one showing how to set it!
>My attempt:
>
>
>oFilePropreader = CreateObject("DSOleFile.PropertyReader")
>sFile = "C:\MYWORK\MYCLASSES.VCX"
>oDocProp = oFilePropReader.GetDocumentProperties(sFile)
>
>*!* The three Lines below work fine.
>oDocProp.Title = "New Title"
>oDocProp.Author = "New Author"
>oDocProp.Comments = "New Comments"
>*!* The three Lines above work fine.
>
>oDocProp.RevisionNumber = '20080107093006'
>
>	*!* The Line above produces the following error...
>Program Error
>OLE error code 0x8002000e: Invalid number of parameters.
>
>What am I doing wrong?

I am not familiat with DSOFile object but from name I assume that this property expects Numeric value, not string.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform