如何用pb得知现在用得是win98或win2000操作系统?

bysheep1002 2003-11-05 06:10:12
如何用pb得知现在用得是win98或win2000操作系统?
...全文
33 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
bysheep1002 2003-11-06
  • 打赏
  • 举报
回复
谢谢各位
地狱余烬 2003-11-05
  • 打赏
  • 举报
回复
用getenvironment(env) 最好了,不然就得用API函数GetVersion Lib "kernel32" 了
klbt 2003-11-05
  • 打赏
  • 举报
回复
同意楼上,getenvironment(env)可以得到环境对象的各种信息,很有用。
juwuyi 2003-11-05
  • 打赏
  • 举报
回复
//获得系统版本号
environment env
integer resp
string temp
resp = getenvironment(env)


choose case env.ostype
case aix!
temp = 'AIX'
case hpux!
temp = 'HPUX'
case osf1!
temp = 'OSF1'
case sol2!
temp = 'Solaris 2'
case Windows!
temp = 'Windows'
case Windowsnt!
temp = 'Windows NT'
end choose
sle_1.text = temp + ' '+string(env.osmajorrevision)+'.'+string(env.osminorrevision)+'.'+string(env.osfixesrevision)
qqjj7758 2003-11-05
  • 打赏
  • 举报
回复
yeah
dotnba 2003-11-05
  • 打赏
  • 举报
回复
environment env

integer rtn

rtn = GetEnvironment(env)

Environment object

OSFixesRevision Integer The maintenance version of the operating system.
OSMajorRevision Integer The major version of the operating system. For example, this value would be 3 for Windows 3.x or NT 3.51, 4 for 32-bit Windows 95 or NT 4.x, and 5 for Windows 2000.
OSMinorRevision Integer The point release of the operating system. For example, this value would be 10 for Windows 3.10, 5 for SunOS 5.5 (Solaris 5.5), 5 for Macintosh 7.5.

1,108

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧