Tricky Question

Hi Folks,

I have a string variable abc with value say “900323”.

I need to add 000000 then 100000, then 200000, and 300000.

I was thinking of creating a List and it should hold values :

900323000000
900323100000
900323200000
900323300000

Please guide me as to how to append these zero’s at the last and also the datatype of list variable.

@shikharno.7

use for each for the list

inside use
assign

outputstr=inputstringvar+currentitem

cheers

Hi,

How about the following expression?

yourString="900323"

Then

listStr = Enumerable.Range(0,4).Select(Function(i) yourString+i.toString+"00000").ToList

Regards,

1 Like

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