Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get the first 4 characters in the list

            //get the 4 characters from the List of string
           // first convert the list into a string
            string result = string.Join("", lstData.ToArray());
          // now you can use the substring function
            var finalResult = result.Substring(0, 4);
 
PREVIOUS NEXT
Tagged: #characters #list
ADD COMMENT
Topic
Name
8+6 =