需要对象 (Visual Basic)Object required (Visual Basic)

对属性和方法的引用通常需要显式对象限定符。References to properties and methods often require an explicit object qualifier. 这是这种情况。This is such a case.

更正此错误To correct this error

  1. 检查对对象属性或方法的引用具有有效的对象限定符。Check that references to an object property or method have valid object qualifier. 如果未提供一个,指定对象限定符。Specify an object qualifier if you didn't provide one.

  2. 检查对象限定符的拼写,并确保的程序在其中你正在引用它的部分中将出现的对象。Check the spelling of the object qualifier and make sure the object is visible in the part of the program in which you are referencing it.

  3. 如果路径提供给主机应用程序的文件打开命令,请检查参数是否正确。If a path is supplied to a host application's File Open command, check that the arguments in it are correct.

  4. 检查对象的文档,并确保该操作有效。Check the object's documentation and make sure the action is valid.

请参阅See also