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
'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