Regarding array splitting

i have an array of string, i want to modify only the last string of array… can anyone help me with it

Hi @shishirshetty2701

Let’s use the count of the array items to find the last item of the array.

ArrayName(ArrayName.Length - 1) = "Your New Value"

Let know whether this helps…



  1. array_num = {1,2,3}
  2. Assign array_num (array_num .Length-1) = 5
  3. array_num.Last .ToString will have value 5
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.