Hello all !
As i need to know the windows release running on my clients workstations (XP or 7)I’ve tried to make a call to the “GetVersionEx” function in a LotusScript action button, but the returned values for “dwMajorVersion” and “dwMinorVersion” properties are allways 0 
The same code works fine in a VBA Excel application (dwMajorVersion returning 6 under 7 and 5 under XP). Why this does’nt work in LotusScript ?
Thanks for your help and answers…
(Precision : my dev computer runs under 7 sp1 and my Notes client release is 8.5.2FP2 SHF57)
Subject: Hmmm…
You post this in the Notes 8 forum, with the following info:Platform: Windows Vista client
Release: 8.0
Then you write:
“my dev computer runs under 7 sp1 and my Notes client release is 8.5.2FP2”…
Perhaps you should pay attention to details. I am sure that is why your code is not working.
Why don’t you start by posting your code (the relevent parts, strip it down to as little code as possible, while keeping everything needed to reproduce it).
You may want to read this first: How To Ask Questions The Smart Way
Subject: Try Evaluate(“@Platform([SPECIFIC])”) instead
To make your code a bit more robust if anyone tries it on a different platform, try something like this (assuming it’s all LotusScript):
Dim platform
platform=Evaluate(“@Platform([SPECIFIC])”)
Select Case platform(2)
Case “5.1”
Print “Windows XP”
Case “6.0”
Print “Windows Vista”
Case “6.1”
Print “Windows 7”
End Case
Note: I haven’t tested this code at all. Going by Designer Help, it should work, but I’m not sure if the version strings are exactly what I’ve shown above, or if they are longer than that.