Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Version number from a VFP COM
Message
From
25/11/2000 14:16:51
 
 
To
25/11/2000 13:18:41
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00445371
Message ID:
00445386
Views:
18
>>>>>>>>>>>>>>>>>
>>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
Map
View

Click here to load this message in the networking platform