04-18-2016 09:42 AM
I'm currently in the process of developing a seqence for barcode parsing , then writing specific data from the barcode to EE on the UUT. Here's my issue: One particular character sting from the barcode contains several "-" marks. The the raw barcode data is as follows "aaaa-bbbb-cccc-dddd-eeee". However, to write the data to EE, I need the sting in the following format: "aaaabbbbccccddddeeee". Is it possible to use Testand to revome the any instance of "-" from the sting?
Thanks
Solved! Go to Solution.
04-18-2016 09:59 AM
SearchAndReplace("aaaa-bbbb-cccc-dddd", "-", "", 0, False, -1, False)
04-18-2016 10:01 AM
Here's one option:
SearchAndReplace(Locals.InputString,"-","")
04-18-2016 10:04 AM
Perfect! Thanks for the asistance.
07-06-2021 04:36 PM
How can i remove a "tab" from a string? i've tries the search and replace function, but it is not working for me.
07-06-2021 05:13 PM
This worked for me: SearchAndReplace(Locals.VariableWithTabs, "\t", "")
It both modifies the variable and returns the modified value as the result of the function.