#165155 - 2006-09-15 01:33 AM
Re: AScan problem with KiX32 4.52
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
|
Is this still an issue?
I just replaced my Kix32.exe 4.50 with 4.52 and suddenly experience the same error on the AScan line. Here's my code:
Code:
$aTmp = Split($FnList, ',') For Each $ In $aTmp '$=' $ ? ; verify the iteration value $P = AScan($UDFNames, $) 'P=' $P ? ; verify the lookup value
It fails on the AScan line.
I have verified that $FnList contains a comma-delimited list, and that $UDFNames contains 110 elements - all valid.
When I run the script on 4.52, it works ONCE, then fails with $P set to nothing. The first match returns 33 in $P, the second should return 37 but returns null. This does not fail when using Kix 4.50.
Glenn
PS - yes, the loops are all properly closed, etc - this is just a code fragment
|
|
Top
|
|
|
|
#165156 - 2006-09-15 01:55 AM
Re: AScan problem with KiX32 4.52
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
|
OK - adding the "optional" parameters fixes the problem, but breaks the script when executed with 4.50. I changed the AScan line to Code:
$P = AScan($UDFNames, $, 0, , 0)
which are supposedly the default values. 
Have I missed something? Are the "optional" parameters not really optional?
Thanks,
Glenn
|
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 874 anonymous users online.
|
|
|