Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
2816 Vues

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
Ignorer
Auteur Meilleure réponse

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
Ignorer

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

Can you make my answer as solved?

Auteur

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

Meilleure réponse
qty_position = scan_barcode.replace("-", "'")
Avatar
Ignorer
Publications associées Réponses Vues Activité
2
sept. 24
1415
2
août 25
2199
1
juil. 25
748
1
août 25
1150
0
mai 25
1258