borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (Visual Basic) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Bytearray
Poster Message
jonybd
Level: Master

Registered: 18-01-2005
Posts: 118

icon Bytearray

How to do this same thing in VB6 ?

In java this:
byte st[]=new byte[256];
st[0]=1;
st[1]=0x11;
st[2]=0x00;
st[3]=0x09;
System.out.println(st);

[Edited by jonybd on 10-06-2008 at 08:49 PM GMT]

10-06-2008 at 08:42 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
jonybd
Level: Master

Registered: 18-01-2005
Posts: 118
icon Re: Bytearray

anyway fixed

Private Sub Form_Load()
    'byte st[]=new byte[256];
    Dim bytB(256) As Byte
    
    'st[0]=1;
    bytB(0) = 1
    
    'st[1]=0x11;
    bytB(1) = &H11
    
    'st[2]=0x00;
    bytB(2) = &H0
    
    'st[3]=0x09;
    bytB(3) = &H9
    
    'System.out.println(st);
    Debug.Print StrConv(bytB, vbUnicode)
End Sub

10-06-2008 at 09:23 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VB General : Bytearray
Next Topic (Visual Basic) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder