Expression in VB for automating serial numbers in a list using uipath studio

0 votes

There is a certain list in which I need to arrange serial numbers and I need to do this through do While, the order should begin with 00001 and then 00002 … 01555, what should be the VB expression for this in uipath?

Oct 24 in RPA by Pratibha
• 3,680 points
35 views

1 answer to this question.

0 votes

Hi @Pratibha, if I understand your problem correctly you need to arrange some serial numbers in a list in ascending order and use do while for it. You can follow these steps to achieve the same:

  1. Initialize a variable of type int and assign the value as 0001 (assume SerialNumber) for the first time and another variable of type int and value as 1 (assume Count)

  2. Get the selector of the first box and check it with the selector of the second. You will get what needs to be dynamic in the selector.

  3. Loop through the number of values you have on the screen and write the serialNumber variable in the box. Make sure the selector is dynamic with the variable count in it.

  4. Then increment the values of both SerialNumber and Count by 1 so that the value will be written in the next line and the serial number is 0002.

answered Oct 24 by Abha
• 27,180 points

Related Questions In RPA

0 votes
1 answer
0 votes
1 answer

How to scrap only numbers from a pdf file using UiPath studio?

Hi, to scrap only numbers from a ...READ MORE

answered Oct 16 in RPA by Abha
• 27,180 points
17 views
0 votes
1 answer

How to make a text hyperlink in word using Uipath Studio?

Hi there, you can make a text ...READ MORE

answered Oct 24 in RPA by Abha
• 27,180 points
107 views
0 votes
1 answer

Get a list of files from a Directory using UiPath Studio

Hey Apeksha, you can try following pseudo ...READ MORE

answered Nov 5 in RPA by Abha
• 27,180 points
24 views
0 votes
1 answer

What is Get Jobs activity used for in UiPath Studio?

Hey @Rakesh, Get Jobs Activity can be ...READ MORE

answered Mar 13 in RPA by Abha
• 27,180 points
399 views
0 votes
1 answer

How to format text in notepad using UiPath?

Hey @Rashmi, if you want to automate ...READ MORE

answered Mar 18 in RPA by Anvi
• 13,960 points
1,185 views
+1 vote
1 answer

How can I display current date in "dd-MMM-yy" format in UiPath Studio?

Hi Shilpa, if you want to display ...READ MORE

answered Mar 18 in RPA by Pratibha
• 3,680 points
3,845 views
0 votes
1 answer

How to check if a string exists in datatable using UiPath?

Hi @Ravi, to check whether a string ...READ MORE

answered Mar 18 in RPA by Anvi
• 13,960 points
2,456 views
0 votes
1 answer
0 votes
1 answer

How can i create a check box list using for each loop in UI Path.

Hi, to achieve this automation, you can ...READ MORE

answered Aug 29 in RPA by Abha
• 27,180 points
144 views