Assign the Contents of One Array to Another in VB6
Assign the Contents of One Array to Another in VB6
Rate Assign the Contents of One Array to Another in VB6
(2(2 Vote))
'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
Assign the Contents of One Array to Another in VB6 Comments
No comments yet — be the first to post one!
Post a Comment