| 发表于:2007-06-10 09:51:57 楼主 |
private sub command1_click() set bn = createobject( "wscript.shell ") on error goto err1 text1(0).text = bn.regread( "hkey_local_machine\software\sonic\cineplayer\1.5\licenseaccepted ") err1: msgbox ( "参数错误 ") end sub 以上是代码,运行以后不管有没有注册表项存在都会跳出错误提示。要怎么解决?能否添加一行代码检测注册表项是否存在,不存在则跳转到错误提示。 |
|
|
|
|