14-06-2009, 05:33 PM
halla Wrote:Could you give an example
Common man, I'm sure you've messed around with MS enough to remember about it.
The way MS does it is you usually define the packets ID/name in the beginning of the packet
Then when you split it up then the packet ID is Packet(0)
So when you receive the data, split it up, you then check if the packetID equals the packetID you want to received.
Code:
Select Case Packet(0)
Case "pktCheckInventory"
Call checkinventory