• Welcome to Valhalla Legends Archive.
 

Why does line "occasionally" error

Started by FrostWraith, May 21, 2006, 09:57 AM

Previous topic - Next topic

FrostWraith

Edit: Nvm, it happens every time

This code does not error everytime, but very sporadically. This line handles untouched data through winsock.
PID = Asc(Mid(Data, 2, 1))

Error:
QuoteInvalid Procedure Call or Argument

I dont wanna handle it with just On Error Resume Next

raylu

Pie?

Banana fanna fo fanna

You probably want to assert that len(data) >= 2