Hey All,
I have a column with series of numbers in it. How do I find the next number of “76007” as “76008” ?
Hey All,
I have a column with series of numbers in it. How do I find the next number of “76007” as “76008” ?
@uio,
Iterate through the numbers and convert it to Int32. After this just increment it by 1 and that will be your next number.
Sample solution:
Output:
Thanks,
Ashok
Read Range activity: Read your Excel/CSV file and store the data in a DataTable variable (let’s call it dtNumbers).
For Each Row activity:
Inside the For Each Row activity:
Write Range activity: Write the updated DataTable (dtNumbers) back to your Excel/CSV file.
Hi @uio ,
(Convert.ToInt32(Your_Dt.Rows(your_DT.Rows.Count - 1)("Registered Vendors")) + 1).tostring
Regards,
Vinit Mhatre
Hi @uio
Try this
(From row In DT.AsEnumerable() Select Convert.ToInt32(row("Registered Vendors"))).Max() + 1
Input:
Cheers!!
Can you please share the xaml file ? I’m getting an error “Assign: Value cannot be null. (Parameter ‘source’)”
Fails stating “Assign: Object reference not set to an instance of an object.”
Your file works fine. I think there’s some issue with my packages. Thanks a lot.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.