Aug 29, 2005 #1 tehCoosh Technical User Aug 29, 2005 9 US I am trying to create a packet in VB6 byte by byte but Im not sure how to do it the way I want. I want it like so: packet = &H00, &H4C, &H36 How must I go about doing this? Thanks, Ramsey
I am trying to create a packet in VB6 byte by byte but Im not sure how to do it the way I want. I want it like so: packet = &H00, &H4C, &H36 How must I go about doing this? Thanks, Ramsey
Aug 29, 2005 #2 selimsl Programmer Aug 15, 2005 62 TR Hi! Dim arrData() As Byte ReDim arrData(1 To 2) arrData(1) = &H4C arrData(2) = &H1B You can define an array of byte like above... I hope this helps you. Upvote 0 Downvote
Hi! Dim arrData() As Byte ReDim arrData(1 To 2) arrData(1) = &H4C arrData(2) = &H1B You can define an array of byte like above... I hope this helps you.
Aug 29, 2005 #3 PCLewis Programmer Aug 11, 2005 271 NZ or even Code: Dim packet as variant packet=Array(&H00, &H4C, &H36) Upvote 0 Downvote
Aug 29, 2005 Thread starter #4 tehCoosh Technical User Aug 29, 2005 9 US Ah thank you, solved my problem Upvote 0 Downvote