#209711 - 2014-12-03 09:34 AM
Troubles with ascan
|
Morten_rn_dk
Just in Town
Registered: 2009-04-20
Posts: 1
Loc: Denmark
|
Having some troubles with ascan - version 4.61 and version 4.64 of kix32.exe behaves differently
$a="1","","2","3","","5","6","7","8","9","10" ? Join( AScan($a,"9",,,3) , ",")
Version 4.61 of Kix32.exe Returns : 9 (correct) Version 4.64 of Kix32.exe Returns : 1,4,9 (wrong)
Edited by Mart (2014-12-03 12:09 PM) Edit Reason: Moved post from Beta to Basci scripting as it is not related to the original question in the Beta section
|
Top
|
|
|
|
#209712 - 2014-12-03 03:51 PM
Re: Troubles with ascan
[Re: Morten_rn_dk]
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4545
Loc: USA
|
I was not able to reproduce the problem. Here is your script modified to show a little more info:
? @kix
$a="1","","2","3","","5","6","7","8","9","10",19,"9"
? "Return All Exact Matches:" + Join( AScan($a,"9",,,2) , ",")
? "Return All Instr Matches:" + Join( AScan($a,"9",,,3) , ",")
4.64 returns
4.64
Return All Exact Matches:9,12
Return All Instr Matches:9,11,12
4.62 returns the same
|
Top
|
|
|
|
#209719 - 2014-12-04 12:38 AM
Re: Troubles with ascan
[Re: Allen]
|
Henriques
Fresh Scripter
Registered: 2007-09-13
Posts: 43
|
This is strange, I agree for the results with Allen, I combined the scripts of Morten_rn_dk and Allen with the following result;
If @ONWOW64
$RESULT = SetOption("WOW64FileRedirection", "On")
$RESULT = SetOption("WOW64AlternateRegView", "On")
Else
$RESULT = SetOption("WOW64FileRedirection", "Off")
$RESULT = SetOption("WOW64AlternateRegView", "Off")
EndIf
Cls
? 'OS + patchlevel = ' + RTrim(@PRODUCTTYPE + ' ' + @DOS + ' ' + @CSD) + '.'
? "Kix Version = " + @KIX + @CRLF
$A="1","","2","3","","5","6","7","8","9","10"
? "Morten_rn_dk"
? Join( AScan($A,"9",,,3) , ",")
? "-------------------------------------------------"
? "Allen"
$A="1","","2","3","","5","6","7","8","9","10",19,"9"
? "Return All Exact Matches:" + Join( AScan($A,"9",,,2) , ",")
? "Return All Instr Matches:" + Join( AScan($A,"9",,,3) , ",")
Result;
OS + patchlevel = Windows 8.1 Professional Edition 6.3.
Kix Version = 4.64
Morten_rn_dk
9
-------------------------------------------------
Allen
Return All Exact Matches:9,12
Return All Instr Matches:9,11,12
Edited by Allen (2014-12-04 01:20 AM) Edit Reason: added code tags
|
Top
|
|
|
|
#210408 - 2015-07-22 03:45 PM
Re: Troubles with ascan
[Re: Ruud van Velsen]
|
Allen
KiX Supporter
Registered: 2003-04-19
Posts: 4545
Loc: USA
|
Dude. Nice work!
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 557 anonymous users online.
|
|
|