如何确定发生错误的对象的确切位置 [英] How can I determine the exact location of an object where an error occurs

查看:73
本文介绍了如何确定发生错误的对象的确切位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在逐步调试一个Access应用程序从autoexec宏执行的流程,我得到一个错误缺少项目或库引用(我不知道这是否是正确的翻译,消息西班牙语No se puede encontrar el proyecto o la biblioteca);我非常清楚我在应用程序中有一个缺少的引用,但是哪一个?。

我的意思是,调试在要执行的函数的开始时停止,因此很难我知道错误中的哪个对象正在引用。



函数是一个字符串类型一个,一个参数作为字符串,第二个作为布尔值。即使第一个参数告诉我,如果我试图在中间视图中看到它的内容,那么库也会丢失。



我怎么知道什么是缺少的库或库?



我的尝试:



我正在寻找同时,项目中所有缺失的参考文献。



不幸的是我找不到的东西很少。我让系统人员给我这些文件。



其中一个是.tlb文件?这些是什么类型的?

I´m debugging an Access application following step by step the flow of execution from the autoexec macro, and I get an error "Missing project or library reference" (I don´t know if this is the correct translation, the message is in spanish "No se puede encontrar el proyecto o la biblioteca"); I´m very aware I got a missing reference in the app, but which one ?.
I mean, the debug stops at the beggining of the function to be executed, so it´s very difficult to me to know which object inside the error is refering to.

The function is a string type one with one parameter as string and a second one as boolean. Even the first parameter tells me the library is missing if I try to see its content in the inmediate view.

How can I know what is precisely the missing library or libraries ?

What I have tried:

I'm looking for all the missing references in the project in the meantime.

Unfortunately there are few I can´t find. I asked the systems personnel to get me those files.

One of them is a .tlb file ?. What kind are those ?

推荐答案

在Access中进行调试需要VBA控制台处于活动状态才能逐步执行代码。一旦这个单独的应用程序,你已经F11的宏的行/块的界面显示高亮的迹象和下一行/块的开始出现,如果你引用了本机的函数或方法的主体访问VB模块无法走进/关于/通过该接口将咳出错误消息。



我认为这是你现在完全停止的阶段。请注意,有一个图标可供您点击访问(在这种情况下使用的是一个糟糕的单词......而不是show)...来显示对象浏览器。将此视图作为焦点,并注意主菜单栏上的参考下拉列表。在那里你将能够显示当前与调试阶段当前关联的类型库/动态链接库/等...如果你真的很幸运......那么将会有一个引用遗失(斜体)。函数/方法体在THAT MISSING .tlb / .dll中(如你所说)。



只需将该位置添加到项目中即可。继续你的快乐方式。



不知道这个库存在哪里?尝试谷歌搜索文件名甚至谷歌搜索功能/方法名称。最后得到那些给你这个项目代码并告诉他们你告诉我们的内容的人。
Debugging in Access requires the VBA console to be active in order to step through the code. Once this separate app, the interface to the lines/blocks of the macro you've F11'd show signs of highlights and procession to next line/block starts occuring, if you've referenced the body of a function or method that the native Access VB module is unable to walk into/about/through the interface will cough up an error message.

I assume this the stage at which you are presently at full stop. Notice that there's an icon on which you can click to access (what a poor word to use in this case ... how about "show" instead) ... to show the Object Browser. Make this view your focus and note there's the reference drop down up there on the main menu bar. There you'll be able to show what type libraries/ dynamic link libraries/etc are CURRENTLY associated with the debugging stage as-is ... and if you're really lucky ... there'll be a "reference" that is missing (italics). The function/method body is in THAT MISSING .tlb/.dll (as you say).

Just add that location to the project. And proceed on your merry way.

No idea where this libraryy resides? Try Googling the filename or even googling the function/method name. And finally get ahold of the guys who gave you this project code and tell them exactly what you've told us.


这篇关于如何确定发生错误的对象的确切位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆