Click here to Skip to main content
15,881,967 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sending SMS Pin
Dave Kreskowiak20-Feb-12 8:42
mveDave Kreskowiak20-Feb-12 8:42 
GeneralRe: Sending SMS Pin
Luc Pattyn20-Feb-12 8:43
sitebuilderLuc Pattyn20-Feb-12 8:43 
GeneralRe: Sending SMS Pin
Quiettao0o0o24-Feb-12 15:10
Quiettao0o0o24-Feb-12 15:10 
QuestionCombo box in List box Pin
Pasan14818-Feb-12 4:38
Pasan14818-Feb-12 4:38 
AnswerRe: Combo box in List box Pin
Dave Kreskowiak18-Feb-12 4:51
mveDave Kreskowiak18-Feb-12 4:51 
AnswerRe: Combo box in List box Pin
Eddy Vluggen18-Feb-12 7:31
professionalEddy Vluggen18-Feb-12 7:31 
GeneralRe: Combo box in List box Pin
ProEnggSoft18-Feb-12 15:47
ProEnggSoft18-Feb-12 15:47 
QuestionHow to copy a two-dimensional array of List(of integer) as value Pin
Alex Casals18-Feb-12 4:02
professionalAlex Casals18-Feb-12 4:02 
hello:

I am trying to copy one two-dimensional array to another. The elements of the arrays are list of integers.

I want to copy by value. I mean, I need to change the second array without changing the first one.

I have tried with both array.copy and array.clone
Dim myarray1(3, 4) As List(Of Integer)

        Dim myarray2(3, 4) As List(Of Integer)
        Dim mylist As New List(Of Integer)
        For i = 1 To 3
            mylist.Add(i)
        Next
        For i = 0 To 3
            For ii = 0 To 4
                myarray1(i, ii) = New List(Of Integer)
                myarray2(i, ii) = New List(Of Integer)
                myarray1(i, ii).AddRange(mylist)
            Next
        Next
        'Array.Copy(myarray1, myarray2, myarray1.Length)
        myarray2 = CType(myarray1.Clone, Global.System.Collections.Generic.List(Of Integer)(,))

        myarray2(2, 2).Clear()


In both cases, the original array (myarray1(2,2)) is changed too.
I want the first array (myarra1) stay unchanged.

Any sugestion appreciated.

Greetings,

Alex
AnswerRe: How to copy a two-dimensional array of List(of integer) as value Pin
Luc Pattyn18-Feb-12 4:17
sitebuilderLuc Pattyn18-Feb-12 4:17 
AnswerRe: How to copy a two-dimensional array of List(of integer) as value Pin
Dave Kreskowiak18-Feb-12 4:31
mveDave Kreskowiak18-Feb-12 4:31 
GeneralRe: How to copy a two-dimensional array of List(of integer) as value Pin
Alex Casals18-Feb-12 6:12
professionalAlex Casals18-Feb-12 6:12 
GeneralRe: How to copy a two-dimensional array of List(of integer) as value Pin
Dave Kreskowiak18-Feb-12 6:32
mveDave Kreskowiak18-Feb-12 6:32 
QuestionTree List Double Click Event Pin
Midnight Ahri17-Feb-12 16:16
Midnight Ahri17-Feb-12 16:16 
AnswerRe: Tree List Double Click Event Pin
Dave Kreskowiak17-Feb-12 17:16
mveDave Kreskowiak17-Feb-12 17:16 
AnswerRe: Tree List Double Click Event Pin
Eddy Vluggen18-Feb-12 2:41
professionalEddy Vluggen18-Feb-12 2:41 
AnswerRe: Tree List Double Click Event (new) Pin
ProEnggSoft18-Feb-12 16:30
ProEnggSoft18-Feb-12 16:30 
QuestionRe: Tree List Double Click Event (new) Pin
Midnight Ahri19-Feb-12 20:09
Midnight Ahri19-Feb-12 20:09 
AnswerRe: Tree List Double Click Event (new) Pin
ProEnggSoft19-Feb-12 20:38
ProEnggSoft19-Feb-12 20:38 
AnswerRe: Tree List Double Click Event (new) Pin
Midnight Ahri19-Feb-12 21:35
Midnight Ahri19-Feb-12 21:35 
AnswerRe: Tree List Double Click Event (new) Pin
ProEnggSoft19-Feb-12 21:55
ProEnggSoft19-Feb-12 21:55 
AnswerRe: Tree List Double Click Event (new) Pin
Midnight Ahri19-Feb-12 22:03
Midnight Ahri19-Feb-12 22:03 
GeneralRe: Tree List Double Click Event (new) Pin
ProEnggSoft19-Feb-12 22:09
ProEnggSoft19-Feb-12 22:09 
Questionhow to make slide puzzle game with VB 6.0 Pin
goteku17-Feb-12 2:38
goteku17-Feb-12 2:38 
AnswerRe: how to make slide puzzle game with VB 6.0 Pin
Simon_Whale17-Feb-12 3:14
Simon_Whale17-Feb-12 3:14 
AnswerRe: how to make slide puzzle game with VB 6.0 Pin
Dave Kreskowiak17-Feb-12 3:57
mveDave Kreskowiak17-Feb-12 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.