﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
442	Proposed changes to _StringAddThousandsSep()	GEOSoft	Valik	"This allows for regional settings.
{{{
Func _StringAddThousandsSep($sString, $sThousands = -1, $sDecimal = -1)
	Local $sResult = """" ; Force string
	Local $rKey = ""HKCU\Control Panel\International""
	If $sDecimal = -1 Then $sDecimal = RegRead($rKey, ""sDecimal"")
	If $sThousands = -1 Then $sThousands = RegRead($rKey, ""sThousand"")
	Local $aNumber = StringRegExp($sString, ""(\d+)\D?(\d*)"", 1)
	If UBound($aNumber) = 2 Then
		Local $sLeft = $aNumber[0]
		While StringLen($sLeft)
			$sResult = $sThousands & StringRight($sLeft, 3) & $sResult
			$sLeft = StringTrimRight($sLeft, 3)
		WEnd
		$sResult = StringTrimLeft($sResult, StringLen($sThousands)) ; Strip leading thousands separator
		If $aNumber[1] <> """" Then $sResult &= $sDecimal & $aNumber[1]
	EndIf
	Return $sResult
EndFunc   ;==>_StringAddThousandsSep
}}}
"	Feature Request	closed	3.3.1.0	Standard UDFs		Blocking	Completed		
