Your Products have been synced, click here to refresh
This seems to do the trick!! Thank you for the input!
C1 =comment/input,no,full screen=no,
enter serial number
assign/newsn=c1.input
if_goto/index(newsn,"")>0,goto = death
if_goto/index(newsn,"/")>0,goto = death
if_goto/index(newsn,":")>0,goto = death
if_goto/index(newsn,"*")>0,goto = death
if_goto/index(newsn,"<")>0,goto = death
if_goto/index(newsn,">")>0,goto = death
if_goto/index(newsn,"?")>0,goto = death
if_goto/index(newsn,"|")>0,goto = death
if_goto/len(newsn)>17,goto = death
goto/live
death =label/
if/1
comment/oper,no,full screen=yes,auto-continue=yes,time delay=10,
"do not use more than 17 and/or special characters for the input."
try again!
Newsn
"is an invaild input"
goto/c1
end_if/
goto/live
live =label/
So my next question is if i have a user input comment like this "p123456; s00024058; v433356" and only want the s00024058 string, how do I filter out or ignore the p numbers, ; , & v numbers? I want only the s numbers collected and input into a tracefield or variable.
essentially this... Masking Barcode Characters (hexagonmi.com)
Once this data is input is the format always exactly the same?
P123456; s00024058; v433356
7 characters, 9 characters, 7 characters
If this is 100% repeatable in this format, something I threw together quickly without thought for more controlled filtering.
C1 =COMMENT/INPUT,NO,FULL SCREEN=NO, Scan Barcode ASSIGN/V1=RIGHT(LEFT(C1.INPUT, 18),9) TRACEFIELD/DISPLAY=NO,REPORT=NO,DISPLAY MESSAGE=New Trace ; New Trace : V1
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |