#183906 - 2007-12-18 11:35 PM
Invalid UDF call line error bug
|
It_took_my_meds
Hey THIS is FUN
Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
|
Dear Ruud et. al.,
I've found a line error bug relating to invalid UDF calls. Please check out the following code:
? "Line 1"
? "Line 2"
Test
Function Test($x)
$Test=$x
EndFunction
Which returns:
Line 1
Line 2
ERROR : invalid method/function call: missing '('!
Script: C:\Temp\test.kix
Line : 10 There are only 9 lines of code in the above script. I assume that KiX is scanning the entire script for a function with the same name and signature. When it gets to the end, it returns the number of lines of the script + 1 as the error line rather than where the error occured.
Regards,
Richard
|
Top
|
|
|
|
#183979 - 2007-12-19 11:22 PM
Re: Invalid UDF call line error bug
[Re: Witto]
|
It_took_my_meds
Hey THIS is FUN
Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
|
Just because older versions also exhibit the same behaviour doesn't preclude it from being an error. It just means that no one has found and reported it before.
|
Top
|
|
|
|
Moderator: ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 507 anonymous users online.
|
|
|