Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
2859 Visninger

Hi everyone, I have a problem with code.

In this part:

qty_position = scan_barcode.find('-')

I need replace symbol - with symbol

qty_position = scan_barcode.find(''')

the problem is that with this new symbol, code after change like if is it:

""" Text """

How I can do?

Thanks very much

Avatar
Kassér
Forfatter Bedste svar

Thanks Hassan, it work!

Can I ask an other question, If I need:

qty_position = scan_barcode.find("'" or "*")

it's possible to do this? What's the correct code?

Thanks

Avatar
Kassér

qty_position = scan_barcode.replace("'", "").replace("*","")

Can you make my answer as solved?

Forfatter

Hi Hassan, thanks for you help! I would like make your answer as solved, but I can not because forum need 5 Karma for make it, and I have not its. I don't know how I can do

Bedste svar
qty_position = scan_barcode.replace("-", "'")
Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
sep. 24
1452
2
aug. 25
2394
1
jul. 25
897
1
aug. 25
1151
0
maj 25
1338