Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB6: Using Bytes

Status
Not open for further replies.

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
 
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.
 
or even

Code:
Dim packet as variant
packet=Array(&H00, &H4C, &H36)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top