Thanks for that, it now works.
I expected it to be related to not using a fixed length string, however I had only tried to set the strings to Null rather than a load of spaces.
Anyway I have found that using the following is easier than counting how many time you press the spacebar
Code:Dim VendorName As String = New String(CChar(" "), 16)
Also in the code you posted I don't think that you need to call "hidGetHandle" as you already have that in the variable "pHandle".
Bookmarks