#202931 - 2011-08-19 07:59 PM
4.62 AScan
|
ShaneEP
MM club member
   
Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
|
I've begun experiencing some odd results from AScan once I upgraded to 4.62. For some reason it returns a zero no matter what if the array begins with an empty element.
I would think this would return a 2, but I keep getting zero. The example below returns a 0 for both checks.
$startingdates = "","2011/08/01","2011/08/08"
$check = "2011/08/08"
? "AScan result: "+AScan($startingdates,$check,,,1)
$check = "poop"
? "AScan result: "+AScan($startingdates,$check,,,1)
get $
Edited by ShaneEP (2011-08-19 08:49 PM) Edit Reason: typo in check date
|
Top
|
|
|
|
#202937 - 2011-08-19 08:49 PM
Re: 4.62 AScan
[Re: ShaneEP]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
nevermind
|
Top
|
|
|
|
#202938 - 2011-08-19 08:53 PM
Re: 4.62 AScan
[Re: Arend_]
|
ShaneEP
MM club member
   
Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
|
lol, it took me a bit to figure out what was happening too.
Try this one...It returns 1's. It is seeing the first empty element as a find, and then exiting.
$startingdates = "test","","2011/08/01","2011/08/08"
$check = "2011/08/08"
? "AScan result: "+AScan($startingdates,$check,,,1)
$check = "poop"
? "AScan result: "+AScan($startingdates,$check,,,1)
get $
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 561 anonymous users online.
|
|
|