Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Write the RevisionNumber Field of a Document?
Message
From
07/01/2008 17:22:32
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01280033
Message ID:
01280054
Views:
11
>>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 familiar with DSOFile object but from name I assume that this property expects Numeric value, not string.

Thank you Borislav,

However...
? VARTYPE(oDocProp.RevisionNumber)
Returns:
C
If I try a numeric
 oDocProp.RevisionNumber = 2008
I still get error 1426 ... the same error
Thank you,
- Frank
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform