Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Word 6, 7, or 8???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00173965
Message ID:
00174038
Views:
53
>>Hello.
>>
>>I'm using MSWord to create some reports. And I'm having
>>a bit of problem with MSWord basic vs MSWord VBA.
>>I need to know what version of MSWord is installed on
>>every machine my app runs on.
>>It must run with MSWord 6, 7 and 8.
>>Everything is working except the version check.
>>There is a func called word.application.version but it only
>>works with MSWord 8. I have tried word.basic.version but there is
>>no func called that in basic.
>>
>>So what I need is a func that will determine if it's MSWord 6, 7 or 8,
>>or both.
>>
>Hi Magnus,
>
>In VFP 6.0 you can use AGETFILEVERSION() to retrieve the version number from the EXE. In VFP 5.0 the function is in the foxtools library and called GETFILEVERSION(). They use slightly different syntax:
>* lcfile is the fully qualified file name
>SET LIBRARY TO FOXTOOLS && Needed only in 5.0
>DIMENSION a_info[12]
>* VFP 5.0
>= GETFILEVERSION(lcfile, @a_info)
>* VFP 6.0
>= AGETFILEVERSION(a_info, lcfile)
>Version information in the fourth array element.
>
>hth,

Hi George.

Thanks for the answere.
I have tried this but it does not work properly. It only works on
WINNT 4 system files (I'm running NT4WS Sp3). Don't get any info
from other EXE-files. Do you have any idea why?

/Magnus
Magnus Nordin
VFP MCP

"We have tested the GUI on 5-year olds. Why? Beacuse they aren't braindead!"
Michael Spindler, Apple

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform