Hi, recently I updated my stata16 version to stata17 and now have an issue with the command destring myvar, replace dpcomma. However, my code for stata16 successfully worked before.
For example I have a var read1_1 that contains mix of numbers integer, with decimal places using a comma, with decimal places using a dot. I need to destring the var read1_1.

I used a command:
Code:
destring read1_1, replace dpcomma
, and it worked. Since I've switched to stata 17 it does not work now and returns the message : read1_1: contains nonnumeric characters; no replace.
Fragment of data is here:
read1_1
230. | 5.5 |
231. | 7.5 |
232. | 5,9 |
233. | 5,3 |
234. | 7,9 |
235. | 4,2 |
236. | 6,4 |
237. | 5,4 |
238. | 5,4 |
239. | 6,4 |
240. | 5.7 |
241. | 5.4 |
242. | 8.1 |
243. | 7,1 |
244. | 6.7 |
245. | 4.4 |
246. | 6.4 |
247. | 4,4 |
248. | 6,2 |
249. | 10,2 |
250. | 4,3 |
251. | 5,4 |
252. | 6.5 |
253. | 5,7 |
254. | 5,1 |
255. | 6,0 |
261. | 5,7 |
262. | 4,9 |
263. | 7 |
264. | 7,6 |