Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Packet Tutorial
#7
grimsk8ter11 Wrote:the sub thing only works well if you amster AddressOf and and such like the byte buffer, otherwise, its pointless because you still do the if statements.[/code]

Actually, I dont believe it is. I have not in-depth looked into how Select Case works, but I believe it takes the argument and compairs it to multiple scenerios without calculating each one. Though since you're just using "If String(0) = 'MyString' Then", not sure - I can definately tell you any improvement would be very insignificant.

If anything, I reccomend breaking it up into select case statements and then moving them to seperate subs just for organization - makes it a hell of a lot easier to find what you need without digging through 10000 lines of one module. :wink:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)