Manipulate Barcode Scans

I use a USB barcode scanner to scan a code to generate a series of number. Is there a way in URscript or command to trim certain part of the scan code. Like in Excel or other programming languages, there is LEFT, RIGHT, or MID etc…

I am also looking for the solution.

for this barcode scanner

Hi @pendi156siri, @cbc.paulh, Yes you can convert number to string manipulate the string then convert back to number. Take a look at the script functions beginning with str_ in the internals section of the script manual:

https://www.universal-robots.com/download/?filters[]=98761&query=