The information in this article applies to:
SYMPTOMS
Advanced: Requires expert coding, interoperability, and multiuser skills.
Although this statement is correct, to receive this Boolean value you must
trap for errors that are generated by the broken reference. Also, the
IsBroken property becomes True only when the file being referenced is
deleted and the Microsoft Windows Recycle Bin is emptied. This article
details the steps necessary to receive the Boolean value.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web: http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp RESOLUTIONIf you want to force the IsBroken property to return True, you must first trap the standard error message, and then use the IsBroken property. MORE INFORMATIONTo create an example so that IsBroken returns True, you must first create a broken reference. If you create a reference to an ActiveX control or any other library that has its own registry entry and the referenced library is deleted, you will see a standard error message when trying to use the IsBroken property. IsBroken is not able to return True to the Visual Basic for Applications procedure until the standard messages are masked with error trapping. If you do not trap for errors before using IsBroken in the second example, you will receive the following message: Runtime Error 48: Error in Loading DLLNOTE: A simple way to obtain an ActiveX control that you can use in the following steps is to download and install the Snapshot Viewer, which comes with its own ActiveX control. For information about obtaining the Microsoft Snapshot Viewer, please see the following article in the Microsoft Knowledge Base: Q175274 ACC97: Microsoft Snapshot Viewer Available in Download CenterTo create a broken reference for an ActiveX Control, follow these steps:
Additional query words: loop references
Keywords : kbdta AccCon PgmHowto |
Last Reviewed: November 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |