用户登录
用户注册

分享至

VBS教程:VBscript属性-HelpFile 属性

  • 作者: 直径无限扩张
  • 来源: 51数据库
  • 2021-09-05

helpfile 属性

设置或返回帮助文件的完整有效路径。

object.helpfile [= contextid]

参数

object

必选项。err 对象。

contextid

可选项。帮助文件的完整有效路径。

说明

如果在 helpfile 中指定帮助文件,则当用户在错误消息对话框中单击帮助按钮(或按 f1 键)时,自动调用此文件。如果 helpcontext 属性包含指定文件的有效上下文 id ,则自动显示该主题。如果未指定 helpfile,则显示 vbscript help 文件。

on error resume nextdim msgerr.clearerr.raise 6    '产生“溢出”错误。err.helpfile = "yourhelp.hlp"err.helpcontext = yourcontextidif err.number <> 0 then   msg = "按下 f1 键或 help 查看" & err.helpfile & "与下列 helpcontext " & _   " 有关的主题: " & err.helpcontext   msgbox msg, , "错误: " & err.description, err.helpfile, err.helpcontextend if
软件
前端设计
程序设计
Java相关