-
DF20 bug with pos
Hi,
More goodies from debugging WebQuery...
On DF 19.1 the following code:
[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
[/code]
Outputs:
[quote]
12
[/quote]
On DF20, the output is
[quote]
0
[/quote]
--
Wil
-
Re: DF20 bug with pos
interesting..
in the code above change the line
[code]
Move (Pos(",",sValue,iPos,10)) to iCommaPos
[/code]
into
[code]
Move (Pos(",",sValue,iPos,9)) to iCommaPos
[/code]
...and it works
--
Wil
-
Re: DF20 bug with pos
-
Re: DF20 bug with pos
[QUOTE=Samuel Pizarro;367088]I am getting worried...[/QUOTE]
Better me who finds these issues than your customers.
--
Wil
-
Re: DF20 bug with pos
-
Re: DF20 bug with pos
Thanks for your report Wil, I've logged this issue.
-
Re: DF20 bug with pos
-
Re: DF20 bug with pos
Wil,
I moved this here because it's likely a Unicode-related issue.
-
Re: DF20 bug with pos
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
-
Re: DF20 bug with pos
Frank,
I'll update that later today.