Mashiane Expert Licensed User Longtime User Jan 31, 2019 #1 Hi there I'm creating an event adder for my code with a list dependency.. Code: Copy Dim nl As List nl.Initialize nl.AddAll(Array As String("anele", "is", "enjoying", "banano")) For Each strname As String In nl Dim strA As String = "Test-" & strname Log(strA) Log(strname) Next A rather tricky one, the Log(strname) is able to log each item in the console yet, Im getting all the array items for logging strA whereas perhaps its just supposed to be each item appended to "Test-" Code: Copy Test-anele,is,enjoying,banano I' m going to explore using the counter type of loop so long. Update: I see now where my issue is, this works when the items are added like this to the list.. Code: Copy Dim nl As List nl.Initialize nl.Add("anele") nl.Add("is") nl.Add("enjoying") nl.Add("banano") Will update my code for all AddAll so long.. Attachments AddAllSplit.zip AddAllSplit.zip 1.6 KB · Views: 639 Last edited: Jan 31, 2019
Hi there I'm creating an event adder for my code with a list dependency.. Code: Copy Dim nl As List nl.Initialize nl.AddAll(Array As String("anele", "is", "enjoying", "banano")) For Each strname As String In nl Dim strA As String = "Test-" & strname Log(strA) Log(strname) Next A rather tricky one, the Log(strname) is able to log each item in the console yet, Im getting all the array items for logging strA whereas perhaps its just supposed to be each item appended to "Test-" Code: Copy Test-anele,is,enjoying,banano I' m going to explore using the counter type of loop so long. Update: I see now where my issue is, this works when the items are added like this to the list.. Code: Copy Dim nl As List nl.Initialize nl.Add("anele") nl.Add("is") nl.Add("enjoying") nl.Add("banano") Will update my code for all AddAll so long..
alwaysbusy Expert Licensed User Longtime User Jan 31, 2019 #2 AddAll and AddAllAt will be fixed in the next update. Upvote 0