GetiCentroViewUserName

Navigation:  组态系统介绍 > 脚本应用 > 系统函数 >

GetiCentroViewUserName

Previous pageReturn to chapter overviewNext page

 

函数说明:

   GetiCentroViewUserName

   取得登陆iCentroView的用户名。

   返回字符串型:登陆iCentroView的用户名。

   如 sys.GetiCentroViewUserName

 

举例:

   在a.bsp的画面中加载一个Button对象,在脚本编辑器中编辑该Button的Click事件如下:

   Sub BSButton1_OnClick()

       MsgBox sys.GetiCentroViewUserName

   End Sub

   运行a.bsp画面,点击Button,弹出登陆iCentroView的用户名。