VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Assign the Contents of One Array to Another in VB6

by Yuening Dai (30 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 9th January 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Assign the Contents of One Array to Another in VB6

Rate Assign the Contents of One Array to Another in VB6



'Put a ListBox on your form to accept the result.
Private Sub cmdArrayAssigned_Click()
    '
    Dim x() As Byte
    Dim y(10) As Byte
    Dim I As Integer
    '
    '
    For I = 0 To 10
        y(I) = CByte(I)
    Next
    '
    Call ByteCopy(y, x)
    '
    For I = 0 To UBound(x)
        List1.AddItem x(I)
    Next I
    '
End Sub


Sub ByteCopy(oldCopy() As Byte, newCopy() As Byte)
    '
    newCopy = oldCopy
    '
End Sub

Download this snippet    Add to My Saved Code

Assign the Contents of One Array to Another in VB6 Comments

No comments have been posted about Assign the Contents of One Array to Another in VB6. Why not be the first to post a comment about Assign the Contents of One Array to Another in VB6.

Post your comment

Subject:
Message:
0/1000 characters