How to get total count of values from a list

Input:
List(1)
{
“20636Invoice.pdf;AC20636;15.02.2024;903,10;150.52;Invoice;UKTruckRepairsLtd;REN001;GB37WARR;8083095”
}
How to get count value of input list i.e – 9

Hi @nidhi.kowalli1

count = yourList.Count

Cheers!!

1 Like

Hi,

How abut the following expression? (Isn’t it 10?)

yourList.SelectMany(Function(s) s.Split(";"c)).Count

image

Regards,

1 Like

Yeah. Sorry. Its 10!

@nidhi.kowalli1

Hi @nidhi.kowalli1

Try this:

inputList = New List(Of String) From {"20636Invoice.pdf;AC20636;15.02.2024;903,10;150.52;Invoice;UKTruckRepairsLtd;REN001;GB37WARR;8083095"}

count = inputList(0).Split(";"c).Count

Hope it helps!!

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