General information
Category:
COM/DCOM and OLE Automation
>>>>>>>>>>>>>>>>>
>>How do I display the version number of a VFP COM object? I would like to do this as a property in the COM object; i.e., oTest.Version.
>>
>>I know that in VB, you would do something like this:
>>Public Property Get Version()
>>Version = App.Major & "." & App.Minor & "." & App.Revision
>>End Property
>>>>>>>>>>>>>>>>>
>
>You could write it to a property, like oTest.Version so it could be read, or you could write that info in the project manager and then make oTest.Getversion() a method, that uses VFP's AGetFileVersion( aVersionArray, cFileName )
Thanks Alex,
How would I use AGETFILEVERSION() in my, for example, COMTEST.DLL? Would this be correct?
PROCEDURE Version
DIMENSION laDLLInfo[1]
=AGETFILEVERSION(laDLLInfo,THIS)
RETURN laDLLInfo[4]
ENDPROC
Please forgive my ignorance, I've been away from VFP for a while - struggling to learn VB.
Thanks again,
Dan
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only