i have an array of string, i want to modify only the last string of array… can anyone help me with it
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…
3 Likes
- array_num = {1,2,3}
- Assign array_num (array_num .Length-1) = 5
- 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.