I believe there is an issue with KiX v4.60 RC1. Let me explain the problem.

I have a function called JustifyText. Given a 'string', 'length' and a 'justification' parameter it is able to left-justify, right-justify or centre the given 'string'.

If I execute this script against KiX version 4.53 and 4.60 RC1 then I get two different results. To reproduce this issue you may use the sample code below.

 Code:
? "KiX Version: " + @KIX

? @CRLF + ":" + JustifyText("mystring", 12, "left", " ") + ":"


Function JustifyText($String, $StrLength, Optional $Justification, Optional $Delim)
	;This function either centres, right or left justifies given text...default is left justification
	
	;When debugging, please un-comment the following line...
	;? "String: '" + $String + "'"
	
	If $Delim = ""
		$Delim = " "
	Else
		$Delim = Left($Delim, 1)
	EndIf
	
	If Len($String) < $StrLength
		Select
		Case $Justification = "right"
			$JustifyText = JustifyText($Delim + $String, $StrLength, $Justification, $Delim)
		Case $Justification = "centre"
			$JustifyText = JustifyText($String, $StrLength - (($StrLength - Len($String)) / 2), "right", $Delim)
			$JustifyText = JustifyText($JustifyText, $StrLength, "left", $Delim)
		Case 1
			$JustifyText = JustifyText($String + $Delim, $StrLength, $Justification, $Delim)
		EndSelect
	Else
		$JustifyText = $String
	EndIf
EndFunction


If you un-comment the debugging code I have placed into my script then it appears that the function is executing correctly. It's just the final value that is returned to the calling script which is incorrect.

The two different results returned by the above sample script are...

 Code:
C:\>KIX32-453.EXE test.kix
 
KiX Version: 4.53
:mystring    :
C:\>KIX32.EXE test.kix
 
KiX Version: 4.60 Release Candidate 1
:m:
C:\>


Regards,

Lee