There are many ways to get 9 digit from 12,
Middle ( scanned ; 3 ; 9 )
I just need some clarification, I am to insert that into the script at some point? I am very new to scripts so I apologize but could you please give me an example of the insert from device code with your addition to amend the result ...
thank you ... Brian
So you can use "Auto enter" calculation in the field as
Case ( Length ( Self ) = 12 ; Middle ( Self ; 3 ; 9 ) ; Self )
The field may be better to be text, but if the first digit of 9 is not 0 always, can be number.
insert a "set field" script step into your script after the data is scanned.
set field (barcode) = middle( barcode ; 3 ; 9)
That will replace the barcode from the scanner with your edited version.
I always create a "RawScan" input or scan field for my Barcode solutions and then create the "Barcode" field as a calculation - Middle(RawScanned; 3; 9). I like keeping the raw original scan if needed later.