在程序中用什么方法获取平台类型?

来源:互联网 发布:linux etc profile 编辑:程序博客网 时间:2024/05/17 21:58

在程序中用什么方法获取平台类型?


环境

产品: Lotus Domino Designer
平台: 无关
版本: 6.x, 7.x

问题

在程序中用什么方法获取平台类型?

解答

在程序中可以通过 NotesSession类的 Platform 属性获取当前的平台类型。样例如下:

Dim session As New NotesSession
Dim thePlatform As String
thePlatform = session.Platform

其可能的返回结果如下:
"Macintosh"                   Macintosh
"MS-DOS"                      MS-DOS
"Netware"                     NetWare
"OS/2v1"                      OS/2 16-bit
"OS/2v2"                      OS/2 32-bit
"OS/400"                      OS/400
"Windows/16"                  Windows 16-bit
"Windows/32"                  Windows 32-bit
"UNIX"                        UNIX (Sun, SCO, AIX)
"Linux"                       Linux

 
原创粉丝点击