Valhalla Legends Forums Archive | Visual Basic Programming | Using a module for usertalk.

AuthorMessageTime
Yegg
For ym CSB bot, after i while of adding more and more commands, i get a "procedure too large" error when ever a user talks through the bot, because the bot can't handle that much code? For CSB is there a way i could do usertalk through a module or another way where i won't run out of space?
October 7, 2004, 2:42 AM
Stealth
I've never heard of this. A quick Google search revealed:

[quote]
Well, this is a new one for me. A user said that he had a procedure with approximately 4000 ListBox AddItem lines in it and was getting an error from Visual Basic about the procedure being too long.
[/quote]

http://vbtechniques.com/content.asp?a=co&cID=1040

The second result suggests breaking the procedure apart into several smaller ones and calling them as a workaround. It also cites VB4 as the cause for the error - are you using VB4?

It's good to farm your code out into individual methods anyway, that way you don't have to write the same thing multiple times.
October 7, 2004, 3:04 AM

Search