程序太大错误 [英] Procedure too large error

查看:118
本文介绍了程序太大错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你可以告诉我如何解决我的程序太大错误,我的代码太大了......我该如何解决呢。

Hi can somebody tell me how can i resolve my "PROCEDURE TOO LARGE ERROR",,, my code is too large.. how can i resolve it.

推荐答案

我从未听说过这个错误。这是什么版本的Visual Basic?


当然,明显的答案是让它变小。如果一个过程太大,你可能需要把它分解成更小的例程。
I''ve never heard of that error. What version of Visual Basic is this?

Of course, the obvious answer is "make it smaller". If a procedure is too large, you probably need to break it up into smaller routines.



你可以告诉我如何解决我的程序太大错误,,,我的代码太大了......我怎么解决它。
Hi can somebody tell me how can i resolve my "PROCEDURE TOO LARGE ERROR",,, my code is too large.. how can i resolve it.



听他说话,今天一点一点地分解。我之前遇到过这个问题,假设您使用的是VB 6.0。您使用的代码行太大,即使您构建模块来处理某些例程,VB也会考虑代码太长。

一个选项可能是添加一个aditional按钮和插入剩下的代码,这是解决这个问题的一种丑陋方式,但是如果你在一个程序中有许多调用,那么VB会不高兴并会对你大喊大叫。必须有一个更简单的方法,我以原始方式解决后停在那里:-)


抱歉你的麻烦,不好玩......

Listen to him darrel, break it down today, bit by bit. I have had this problem before, assuming you are using VB 6.0. The line of code you are using is too large, even if you build modules to handle some routines, VB will consider the code too long.

One option could be to add an aditional button and plug in the remaining code there, an ugly way of solving this but if you have a number of calls to make in one procedure, VB will be unhappy and will yell at you. There''s gotta be an easier way, I stopped there after solving in my primitive fashion:-)

Sorry for your troubles, not fun...


是的,我知道解决问题的唯一方法就是打破它!但我不知道怎么做!我想我需要在模块中创建一个函数,但我不知道如何?你能给我一些关于我如何实现它的细节..它就像我要创建一个函数,然后每次我需要它时都会在我的表单中调用它...希望你能帮忙,我不能在这里发布我的代码因为我将是太长了......
yah i know the only way to solve it is to break it up!!! but i dont know how! i think i need to create a function in a module but i dont know how?? can you give me some details on how can i achieve it.. its like am going to create a function and then calll it in my form everytime i need it.. hope you can help, i cant post my code here coz i will be too long...


这篇关于程序太大错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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