View Full Version : DF20 bug with pos
wila
29-Jul-2021, 04:20 PM
Hi,
More goodies from debugging WebQuery...
On DF 19.1 the following code:
Use Windows.pkg
Procedure Test
String sValue
Integer iPos
Integer iCommaPos
Move "0,1,00,1,52,212,-11,12,-15,false2,-15,false2,-15,false2,-14,Id: 2,-1" to sValue
Move 11 to iPos
Move (Pos(",",sValue,iPos,10)) to iCommaPos
Showln iCommaPos
End_Procedure
Send Test
Inkey WindowIndex
Outputs:
12
On DF20, the output is
0
--
Wil
wila
29-Jul-2021, 04:39 PM
interesting..
in the code above change the line
Move (Pos(",",sValue,iPos,10)) to iCommaPos
into
Move (Pos(",",sValue,iPos,9)) to iCommaPos
...and it works
--
Wil
Samuel Pizarro
29-Jul-2021, 05:38 PM
I am getting worried...
wila
30-Jul-2021, 04:04 AM
I am getting worried...
Better me who finds these issues than your customers.
--
Wil
Samuel Pizarro
30-Jul-2021, 07:49 AM
no doubt !!
Dennis Piccioni
30-Jul-2021, 09:32 AM
Thanks for your report Wil, I've logged this issue.
wila
30-Jul-2021, 09:52 AM
Thanks Dennis!
Stephen W. Meeley
30-Jul-2021, 12:20 PM
Wil,
I moved this here because it's likely a Unicode-related issue.
Frank Cheng
8-Sep-2021, 09:33 AM
This is fixed (along with other string related bugs) in the latest DF 20, however it was not mentioned in the release note. I reckon this is one of the more important issues to mention in the release note since I think most DF applications use "Pos" at some point...
Frank Cheng
Stephen W. Meeley
8-Sep-2021, 12:03 PM
Frank,
I'll update that later today.
Marcia Booth
11-Sep-2021, 04:32 PM
Hello! We have released an updated build of DataFlex 2021 (20.0.7.152) that addresses various issues reported after the release of DataFlex 2021. The post on this release (https://support.dataaccess.com/Forums/showthread.php?67724-DataFlex-2021-Updated-Release-(20-0-7-152)-Published-Update-Now!) includes links to the full release notes as well as to downloading the new installation programs.
The issue you reported here has been addressed in this new build. Thank you for helping us make DataFlex a better product for the whole community!
wila
13-Sep-2021, 07:59 AM
Tested again and can confirm it is fixed.
--
Wil
Powered by vBulletin® Version 4.2.5 Copyright © 2023 vBulletin Solutions Inc. All rights reserved.