sweetboy Posted March 7, 2014 Author Share Posted March 7, 2014 Sub SendDataTo(ByVal index As Long, ByRef Data() As Byte)Dim buffer As clsBufferDim TempData() As Byte If IsConnected(index) Then Set buffer = New clsBuffer TempData = Data buffer.PreAllocate 4 + (UBound(TempData) - LBound(TempData)) + 1 buffer.WriteLong (UBound(TempData) - LBound(TempData)) + 1 buffer.WriteBytes TempData() _**frmServer.Socket(index).SendData buffer.ToArray(**_) End IfEnd Subi got an error at this line anyone know why? and how to fix it? Link to comment Share on other sites More sharing options...
Stein Posted March 7, 2014 Share Posted March 7, 2014 What error? Kind of hard to tell when you're not telling us a thing. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now