Dear Ruud et. al.,

I've found a line error bug relating to invalid UDF calls. Please check out the following code:
 Code:
? "Line 1"
? "Line 2"
Test

Function Test($x)

	$Test=$x
	
EndFunction

Which returns:
 Code:
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