Page 1 of 1
OSVersion() return values gone from help file
Posted: Thu Aug 28, 2003 7:42 am
by PB
How come? I had to go here to find out what they were:
http://www.purebasic.com/documentation/ ... rsion.html

Posted: Thu Aug 28, 2003 9:33 am
by Fred
True, should be an error !
Posted: Thu Aug 28, 2003 9:55 am
by PB
Also, do you think you could add a new one that combines these into one:
#PB_OS_Windows_NT3_51
#PB_OS_Windows_NT_4
Thus, #PB_OS_Windows_NT or similar? It would save checking both values
to test for Windows NT, and you can leave both for times when you want
to check for NT4 alone, etc.
Posted: Thu Aug 28, 2003 5:39 pm
by plouf
PB wrote:Also, do you think you could add a new one that combines these into one:
#PB_OS_Windows_NT3_51
#PB_OS_Windows_NT_4
Thus, #PB_OS_Windows_NT or similar? It would save checking both values
to test for Windows NT, and you can leave both for times when you want
to check for NT4 alone, etc.
you can get it easily with an Or like this
Code: Select all
Select OSVersion()
Case #PB_OS_Windows_NT3_51 Or #PB_OS_Windows_NT_4
EndSelect
unless if you are speaking about the lazyness to type " Or #PB_OS_Windows_NT_4"
(i understand you since i am a lyzy guy too

)
Posted: Fri Aug 29, 2003 8:15 am
by PB
> you can get it easily with an Or like this
> #PB_OS_Windows_NT3_51 Or #PB_OS_Windows_NT_4
Yeah, I know, but my point is I don't care which NT version the user is
running (3.51 or 4) -- I just need to check if it's NT of any kind, so a new
return value of #PB_OS_Windows_NT would do the job nicely.

Posted: Fri Aug 29, 2003 6:11 pm
by Karbon
I don't think NT 3.51 is real.. I've never seen anyone use it!
Just kidding. There probably are some people still using it for some reason or another...