Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: hismajesty on July 16, 2004, 04:47 PM

Title: Sub argument dependency
Post by: hismajesty on July 16, 2004, 04:47 PM
I'm not sure how good that subject title was, oh well. :P

This is a general VB question but the example (and question) arises from a bot development issue. I have my sendpacket sub that has support for 8 protocols, and also takes an argument determing the winsock and packet to send. Right now I have an enumeration with about 82 packets in it (I did this because of a laziness issue - I didn't want to type the packet and liked having a list appear), they're all BNCS but I want to have an enumeration for other protocols such as BNLS and have a list of those packets. Would it be possible to have the third argument (packet id) show a list of packets based on the protocol seleceted in the first argument?

Edit:

Example:

SendPacket(BNCS, wSocket, SID_PING) would only show a list of BNCS packets when I got to typing in SID_PING, and the same for other protocols.

TIA
Title: Re:Sub argument dependency
Post by: Maddox on July 17, 2004, 01:05 AM
No.
Title: Re:Sub argument dependency
Post by: hismajesty on July 17, 2004, 10:19 AM
Quote from: Maddox on July 17, 2004, 01:05 AM
No.

Darn. I didn't think so, thanks for confirming.