Page 1 of 1 1
Topic Options
#165149 - 2006-07-28 02:32 PM AScan problem with KiX32 4.52
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Can someone tell me whats wrong with the following code:
Code:

$KeyHistory='23','28','67'

If AScan($KeyHistory,'17')>-1 And AScan($KeyHistory,'18')>-1 And AScan($KeyHistory,'72')>-1
; Do something..
EndIf



If i replace the strings by numeric values it doesn't change the error code:
ERROR : Error in expression: this type of array not supported in expressions.!
_________________________
Kind regards,

Top
#165150 - 2006-07-28 02:46 PM Re: AScan problem with KiX32 4.52
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
There does seem to be something wrong there - and it seems to be a problem unique to using multiple ASCAN's in an expression.
Top
#165151 - 2006-07-28 03:23 PM Re: AScan problem with KiX32 4.52
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
I use the array to scan the Ctrl-Alt-H combination to clear a drop down list of previous searched users/machines in my Inventory Tool
Top
#165152 - 2006-07-28 05:15 PM Re: AScan problem with KiX32 4.52
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Thanks for the report: something appears to be broken indeed.

I'm investigating and will post an update asap.

Ruud

Top
#165153 - 2006-07-30 03:35 PM Re: AScan problem with KiX32 4.52
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Short update: this is indeed a bug. In fact, this one already existed in pre- 4.52 versions, but just didn't have any noticable effects.

The cause has been found and will be fixed in 4.53 (a beta of which should be available soon).

Thanks again for the report. Good catch!

Ruud

Top
#165154 - 2006-07-31 10:31 AM Re: AScan problem with KiX32 4.52
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
I'll wait for the 4.53 beta to migrate
_________________________
Kind regards,

Top
#165155 - 2006-09-15 01:33 AM Re: AScan problem with KiX32 4.52
Glenn Barnas Administrator Offline
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 Administrator Offline
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
#165157 - 2006-09-15 07:28 AM Re: AScan problem with KiX32 4.52
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
what about showing the code so it can be tested stand alone.
Top
#165158 - 2006-09-15 03:22 PM Re: AScan problem with KiX32 4.52
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Why are we discussing 4.52 when 4.53 is out? It's not like 4.52 will be re-released. Test it in 4.53 and if you still have a problem, post back.
Top
#165159 - 2006-09-29 07:41 AM Re: AScan problem with KiX32 4.52
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
For me: no problems using 4.53. Our firm, TUI Netherlands, is migrated to 4.53 this week (automatic, built-in the logon scripting) and of course everything still works. Thankz Ruud!
Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 874 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.062 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.