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?
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.
http://vbtechniques.com/content.asp?a=co&cID=1040
The second result suggests breaking the procedure apart (http://www.kbalertz.com/kb_129897.aspx) 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.