adjie Member Licensed User Longtime User May 14, 2016 #1 Hello, Here is my situation : B4X: dim cInput = "A,B,C" dim cData() as string = Regex.Split(",", cInput) it returns B4X: cData(0) = "A" cData(1) = "B" cData(2) = "C" Now I want to remove cData(2) without editing the cInput, anyone can help, please ? Last edited: May 14, 2016
Hello, Here is my situation : B4X: dim cInput = "A,B,C" dim cData() as string = Regex.Split(",", cInput) it returns B4X: cData(0) = "A" cData(1) = "B" cData(2) = "C" Now I want to remove cData(2) without editing the cInput, anyone can help, please ?
klaus Expert Licensed User Longtime User May 14, 2016 #2 Instead of using a string array you could use a List. B4X: Dim cInput = "A,B,C" Dim cData As List cData.Initialize cData.AddAll(Regex.Split(",", cInput)) cData.RemoveAt(2) Upvote 0
Instead of using a string array you could use a List. B4X: Dim cInput = "A,B,C" Dim cData As List cData.Initialize cData.AddAll(Regex.Split(",", cInput)) cData.RemoveAt(2)