Sign in to follow this  
Followers 0

_StringAddComma GERMAN

55 posts in this topic

Posted

Hi,

in Germany it is common to write 76.000,00 and not 76,000.00, but this doesn't work with _StringAddComma

#include<String.au3>
MsgBox(4096, "Free space on C:", _StringAddComma(DriveSpaceTotal("C:\"), ".", ",") & " MB")
MsgBox(4096, "Free space on C:", Round(_StringAddComma(DriveSpaceTotal("C:\"), ".", ","), 2) & " MB")
MsgBox(4096, "Free space on C:", _StringAddComma(DriveSpaceTotal("C:\"), ",", ".") & " MB")
MsgBox(4096, "Free space on C:", Round(_StringAddComma(DriveSpaceTotal("C:\"), ",", "."), 2) & " MB")

So long,

Mega

Share this post


Link to post
Share on other sites



Posted

Same in France, I suspect we have only an English approach ... :)

Share this post


Link to post
Share on other sites

Posted

Hi,

So I guess there should be a help file update or udf update. ^_^ Roooooonnnn ... :)

So long,

Mega

Share this post


Link to post
Share on other sites

Posted (edited)

Hi,

So I guess there should be a help file update or udf update. ^_^ Roooooonnnn ... :)

So long,

Mega

Nope! The function is buggy.

MsgBox(4096, "Free space on C:", _StringAddComma(DriveSpaceTotal("C:\"), "^", "!") & " MB")

Doesn't work either and according to the help file it should.

Edit: After rereading that function, what I posted should NOT work. The function only looks for the existence of $sEnd

Try this.

$var = _StringAddComma(DriveSpaceTotal("C:\"))
MsgBox(4096, "Free space on C:",_StringAddComma($var, ".", ",") & " MB")
(untested) Edited by GEOSoft

Share this post


Link to post
Share on other sites

Posted

Hi,

in Germany it is common to write 76.000,00 and not 76,000.00, but this doesn't work with _StringAddComma

#include<String.au3>
MsgBox(4096, "Free space on C:", _StringAddComma(DriveSpaceTotal("C:\"), ".", ",") & " MB")
MsgBox(4096, "Free space on C:", Round(_StringAddComma(DriveSpaceTotal("C:\"), ".", ","), 2) & " MB")
MsgBox(4096, "Free space on C:", _StringAddComma(DriveSpaceTotal("C:\"), ",", ".") & " MB")
MsgBox(4096, "Free space on C:", Round(_StringAddComma(DriveSpaceTotal("C:\"), ",", "."), 2) & " MB")

So long,

Mega

I am not sure what the problem with _StringAddComma() is because it works as advertised:

$testString = "12345678.90"
ConsoleWrite("Free space on C:" & _StringAddComma($testString, ",", ".") & " MB" & @CRLF)
$testString = "12345678,90"
ConsoleWrite("Free space on C:" & _StringAddComma($testString, ".", ",") & " MB" & @CRLF)

It is true that DriveSpaceFree() will return a value with a DecimalPoint thus if you want to have a Decimal Comma you need to do something like:

$testString = DriveSpaceFree("C:\")
$testString = StringReplace($testString,".",",")
ConsoleWrite("Free space on C:" & _StringAddComma($testString, ".", ",") & " MB" & @CRLF)

Agree there is nothing wrong with _StringAddComma() ?

:)

Share this post


Link to post
Share on other sites

Posted

Hi,

yes, but

#include<String.au3>

$nAmount = 89996.31
MsgBox(64, 'Info', _StringAddComma($nAmount, ',', '.')) ; works
MsgBox(64, 'Info', _StringAddComma($nAmount, '.', ',')) ; doesn't work as I expected!

I thought the second should also work without the workaround with changing , and .

So long,

Mega

Share this post


Link to post
Share on other sites

Posted (edited)

Agree there is nothing wrong with _StringAddComma() ?

:)

Agreed. Now that I'm looking at it, none of the AutoIt functions support using a comma for the decimal point.

Round($test, 2) as an example. Therefore the only way to get it is with StringReplace().

Edit: Maybe an entry in the help file that states AutoIt only supports English decimal notation?

Edited by GEOSoft

Share this post


Link to post
Share on other sites

Posted

Hi,

yes, but

#include<String.au3>

$nAmount = 89996.31
MsgBox(64, 'Info', _StringAddComma($nAmount, ',', '.')) ; works
MsgBox(64, 'Info', _StringAddComma($nAmount, '.', ',')) ; doesn't work as I expected!

I thought the second should also work without the workaround with changing , and .

So long,

Mega

I think the confusion is with the last parameter:

$sEnd Optional: The decimal delimiter. Default='.'

This parameter is to inform what the current decimal character is ... not what it should be as far as I understand.

Jos

Share this post


Link to post
Share on other sites

Posted

Hi,

also:

#include<String.au3>

Global $t1, $t2

For $i = 1 To 500
    $start = TimerInit()
    $r1 = xStringAddComma('123456x789,567', ',', '.') & '   E=' & @error
    ;$r1 = xStringAddComma('1', '.', ',') & '   E=' & @error
    $t1 += TimerDiff($start)

    $start = TimerInit()
    $r2 = _StringAddComma('123456xyc789,567', ',', '.') & '   E=' & @error ; Strange result with ,, and error = 0
    ;$r2 = _StringAddComma('1', '.', ',') & '   E=' & @error                 ; error =1 why?    
    $t2 += TimerDiff($start)
Next

MsgBox(0, 'Ergebnis', 'xString = ' & $r1 & '   (' & $t1 / $i & ')' & @CRLF & @CRLF & '_String = ' & $r2 & '   (' & $t2 / $i & ')')

Func xStringAddComma($sStr, $sSeparator = ',', $sEnd = '.')
    If $sSeparator = -1 Or $sSeparator = Default Then $sSeparator = ','
    If $sEnd = -1 Or $sEnd = Default Then $sEnd = '.'
    Local $aNum = StringSplit($sStr, '.,'), $l = StringLen($aNum[1]), $r = ''
    If $aNum[0] > 2 Then Return SetError(1, 0, $sStr)
    Switch $l
        Case 0 To 3
            Return StringRegExpReplace($sStr, '[.,]', $sEnd)
        Case Else
            For $i = 1 To Int($l / 3)
                $r = $sSeparator & StringRight($aNum[1], 3) & $r
                $aNum[1] = StringTrimRight($aNum[1], 3)
            Next
            $r = StringTrimLeft($aNum[1] & $r, $aNum[1] = '')
            If $aNum[0] > 1 Then $r &= $sEnd & $aNum[2]
            Return $r
    EndSwitch
EndFunc   ;==>xStringAddComma

So long,

Mega

Share this post


Link to post
Share on other sites

Posted

HI,

no comment here? So, then move it to NO BUG. I don't give a shit. :)

So long,

Mega

Share this post


Link to post
Share on other sites

Posted

HI,

no comment here? So, then move it to NO BUG. I don't give a shit. :)

So long,

Mega

Christmas spirit ?

I leave it to the creator of the UDF to reply to your last post although its not very clear what the intent of it was since it only contains a script without any explanation.

I am done with this thread since you don't give a shit.

So long,

Jos

Share this post


Link to post
Share on other sites

Posted

I like to have this UDF working for non english number. So I support the fact that comma can be replace by a dot.

The name of the UDF will not be so good but SantaClauss perhaps will brought a new spirit

Merry Chrismas :)

Share this post


Link to post
Share on other sites

Posted

HI,

^_^ no new spirit needed. I'm quite fine. All I wanted to say was:

I don't bother whether the func needs to be "corrected" or not. I leave this decision to you till yet.

I did all I can to show that it doesn't work as I expected. And I showed you there are more problems than just the one with the float parameter.

So, merry christmas :)

So long,

Mega

Share this post


Link to post
Share on other sites

Posted

May i propose a little different approach to such function:

$Space = DriveSpaceFree("C:\")
$Ret = _StringAddComma("Free space on C:\" & @LF & @LF & $Space & " MB", ",", ".")
MsgBox(0, "", $Ret)

Func _StringAddComma($sStr, $sSeparator = ',', $sEnd = '')
    If $sSeparator = -1 Or $sSeparator = Default Then $sSeparator = ','
    If $sEnd = -1 Or $sEnd = Default Or Not StringInStr($sStr, $sEnd) Then $sEnd = ''
	
	Local $iLength, $sReplStr = '', $iMStr, $iM
	Local $aStr = StringRegExp($sStr, '(\d+)', 3)
	
	For $i = 0 To UBound($aStr)-1
		$iLength = StringLen($aStr[$i])
		$sReplStr = ''
		
		$iMStr = StringMid($sStr, StringInStr($sStr, $aStr[$i], 0, 1), 4)
		If $sEnd <> '' And (StringInStr($iMStr, $sEnd) Or $iMStr = $aStr[$i] & $sEnd) Then ExitLoop
		
		If Number($aStr[$i]) <= 1000 Then ContinueLoop
		
		For $j = 1 To $iLength
			$iM = StringMid($aStr[$i], $j, 1)
			If IsInt(($iLength - $j) / 3) And ($iLength - $j) / 3 > 0 Then
				$sReplStr &= $iM & $sSeparator
			Else
				$sReplStr &= $iM
			EndIf
		Next
		
		$sStr = StringReplace($sStr, $aStr[$i], $sReplStr, 1)
	Next
	Return $sStr
EndFunc

? :)

P.S

This probably will not(?) solve the issue that @Xenobiologist mention here, but this method allows to add commas to all numbers that in the string.

Btw, i started to wrote this func when i didn't knew about the _StringAddComma()... well, i seen it somewhere i think, but i didn't thought that this is the purpose of this function (to convert whole string numbers to numbers delimited with commas).

Share this post


Link to post
Share on other sites

Posted

Any life here?

Share this post


Link to post
Share on other sites

Posted

Any life here?

I thought it is Rons job do put any life in here. :D

Share this post


Link to post
Share on other sites

Posted

I may be wrong, but it might be as simple as adding 1 line to the function.

Func _StringAddComma($sStr, $sSeparator = -1, $sEnd = -1)
	If $sSeparator = -1 Or $sSeparator = Default Then $sSeparator = ','
	If $sEnd = -1 Or $sEnd = Default Then $sEnd = '.'
	If StringInStr($sStr, ".", 0, -1) Then $sStr = StringReplace($sStr, ".", $sEnd)
	Local $aNum = StringSplit($sStr, $sEnd), $sHold = '', $aSRE, $bUB = False
	If UBound($aNum) > 2 Then
		$aSRE = StringRegExp($aNum[1], '(\d+)(\d{3})', 1)
		$bUB = True
	Else
		$aSRE = StringRegExp($sStr, '(\d+)(\d{3})', 3)
	EndIf
	If UBound($aSRE) = 2 Then
		While IsArray($aSRE)
			$sHold = $sSeparator & $aSRE[1] & $sHold
			$aSRE = StringRegExp($aSRE[0], '(\d+)(\d{3})', 3)
		WEnd
	EndIf
	Local $nStrLen = StringLen(StringReplace($sHold, $sSeparator, ''))
	If $bUB And $sHold Then
		Return StringTrimRight($aNum[1], $nStrLen) & $sHold & $sEnd & $aNum[2]
	ElseIf $sHold Then
		Return StringTrimRight($sStr, $nStrLen) & $sHold
	EndIf
	Return SetError(1, 0, $sStr)
EndFunc   ;==>_StringAddComma

Share this post


Link to post
Share on other sites

Posted (edited)

It doesn't catch this ...

#include<String.au3>
$nAmount = "89996312321,30"
MsgBox(64, 'Info', _StringAddComma1($nAmount, ',', '.')) ; doesn't work as I expected!
MsgBox(64, 'Info', _StringAddComma1($nAmount, '.', ',')) ; doesn't work as I expected!

Func _StringAddComma1($sStr, $sSeparator = -1, $sEnd = -1)
    If $sSeparator = -1 Or $sSeparator = Default Then $sSeparator = ','
    If $sEnd = -1 Or $sEnd = Default Then $sEnd = '.'
    If StringInStr($sStr, ".", 0, -1) Then $sStr = StringReplace($sStr, ".", $sEnd)
    Local $aNum = StringSplit($sStr, $sEnd), $sHold = '', $aSRE, $bUB = False
    If UBound($aNum) > 2 Then
        $aSRE = StringRegExp($aNum[1], '(\d+)(\d{3})', 1)
        $bUB = True
    Else
        $aSRE = StringRegExp($sStr, '(\d+)(\d{3})', 3)
    EndIf
    If UBound($aSRE) = 2 Then
        While IsArray($aSRE)
            $sHold = $sSeparator & $aSRE[1] & $sHold
            $aSRE = StringRegExp($aSRE[0], '(\d+)(\d{3})', 3)
        WEnd
    EndIf
    Local $nStrLen = StringLen(StringReplace($sHold, $sSeparator, ''))
    If $bUB And $sHold Then
        Return StringTrimRight($aNum[1], $nStrLen) & $sHold & $sEnd & $aNum[2]
    ElseIf $sHold Then
        Return StringTrimRight($sStr, $nStrLen) & $sHold
    EndIf
    Return SetError(1, 0, $sStr)
EndFunc   ;==>_StringAddComma
Edited by Xenobiologist

Share this post


Link to post
Share on other sites

Posted

I get some message from Ron, he should work on it as soon he finish his home moving and his PC reconnection :)

I hope I gave him enough information how German and French writing are... :) :)

Share this post


Link to post
Share on other sites

Posted

It doesn't catch this ...

#include<String.au3>
$nAmount = "89996312321,30"
MsgBox(64, 'Info', _StringAddComma1($nAmount, ',', '.')) ; doesn't work as I expected!
MsgBox(64, 'Info', _StringAddComma1($nAmount, '.', ',')) ; doesn't work as I expected!

Func _StringAddComma1($sStr, $sSeparator = -1, $sEnd = -1)
    If $sSeparator = -1 Or $sSeparator = Default Then $sSeparator = ','
    If $sEnd = -1 Or $sEnd = Default Then $sEnd = '.'
    If StringInStr($sStr, ".", 0, -1) Then $sStr = StringReplace($sStr, ".", $sEnd)
    Local $aNum = StringSplit($sStr, $sEnd), $sHold = '', $aSRE, $bUB = False
    If UBound($aNum) > 2 Then
        $aSRE = StringRegExp($aNum[1], '(\d+)(\d{3})', 1)
        $bUB = True
    Else
        $aSRE = StringRegExp($sStr, '(\d+)(\d{3})', 3)
    EndIf
    If UBound($aSRE) = 2 Then
        While IsArray($aSRE)
            $sHold = $sSeparator & $aSRE[1] & $sHold
            $aSRE = StringRegExp($aSRE[0], '(\d+)(\d{3})', 3)
        WEnd
    EndIf
    Local $nStrLen = StringLen(StringReplace($sHold, $sSeparator, ''))
    If $bUB And $sHold Then
        Return StringTrimRight($aNum[1], $nStrLen) & $sHold & $sEnd & $aNum[2]
    ElseIf $sHold Then
        Return StringTrimRight($sStr, $nStrLen) & $sHold
    EndIf
    Return SetError(1, 0, $sStr)
EndFunc   ;==>_StringAddCommaoÝ÷ Ûú®¢×¯&®¶­sb6æ6ÇVFRfÇCµ7G&æræS2fwC°¢b33c¶äÖ÷VçBÒgV÷C³c3#3#Ã3gV÷C°¤6öç6öÆUw&FRgV÷C²b33²Âb33²Âb33²âb33³¢gV÷C²fײõ7G&ætç6W'E6Wb33c¶äÖ÷VçBÂb33²Âb33²Âb33²âb33²fײÄb¤6öç6öÆUw&FRgV÷C²b33²âb33²Âb33²Âb33³¢gV÷C²fײõ7G&ætç6W'E6Wb33c¶äÖ÷VçBÂb33²âb33²Âb33²Âb33²fײÄb ¤gVæ2õ7G&ætç6W'E6Wb33c·57G"Âb33c·56W&F÷"ÒÓÂb33c·4VæBÒÓ bb33c·56W&F÷"ÒÓ÷"b33c·56W&F÷"ÒFVfVÇBFVâb33c·56W&F÷"Òb33²Âb33° bb33c·4VæBÒÓ÷"b33c·4VæBÒFVfVÇBFVâb33c·4VæBÒb33²âb33° b7G&ætå7G"b33c·57G"ÂgV÷C²âgV÷C²ÂÂÓFVà b33c·57G"Ò7G&æu&WÆ6Rb33c·57G"ÂgV÷C²âgV÷C²Âb33c·4VæB VÇ6Tb7G&ætå7G"b33c·57G"ÂgV÷C²ÂgV÷C²ÂÂÓFVà b33c·57G"Ò7G&æu&WÆ6Rb33c·57G"ÂgV÷C²ÂgV÷C²Âb33c·4VæB VæD` Æö6Âb33c¶çVÒÒ7G&æu7ÆBb33c·57G"Âb33c·4VæBÂb33c·4öÆBÒb33²b33²Âb33c¶5$RÂb33c¶%T"ÒfÇ6P bT&÷VæBb33c¶çVÒfwC²"FVà b33c¶5$RÒ7G&æu&VtWb33c¶çVÕ³ÒÂb33²b3#¶B²b3#¶G³7Òb33²Â b33c¶%T"ÒG'VP VÇ6P b33c¶5$RÒ7G&æu&VtWb33c·57G"Âb33²b3#¶B²b3#¶G³7Òb33²Â2 VæD` bT&÷VæBb33c¶5$RÒ"FVà vÆR4'&b33c¶5$R b33c·4öÆBÒb33c·56W&F÷"fײb33c¶5$U³Òfײb33c·4öÆ@ b33c¶5$RÒ7G&æu&VtWb33c¶5$U³ÒÂb33²b3#¶B²b3#¶G³7Òb33²Â2 tVæ@ VæD` Æö6Âb33c¶å7G$ÆVâÒ7G&ætÆVâ7G&æu&WÆ6Rb33c·4öÆBÂb33c·56W&F÷"Âb33²b33² bb33c¶%T"æBb33c·4öÆBFVà &WGW&â7G&æuG&Õ&vBb33c¶çVÕ³ÒÂb33c¶å7G$ÆVâfײb33c·4öÆBfײb33c·4VæBfײb33c¶çVÕ³%Ð VÇ6Tbb33c·4öÆBFVà &WGW&â7G&æuG&Õ&vBb33c·57G"Âb33c¶å7G$ÆVâfײb33c·4öÆ@ VæD` &WGW&â6WDW'&÷"ÂÂb33c·57G"¤VæDgVæ2³ÓÒfwCµõ7G&ætç6W'E6WoÝ÷ Ø̨ºÚnµ«­¢+ØÐìÅÕ½ÐíèÀäÈíAɽɴ¥±ÌÀäÈíÕѽ%ÐÌÀäÈíM¥QÀäÈíÕѽ%ÐÍ]ÉÁÁÈÀäÈíÕѽ%ÐÍ]ÉÁÁȹáÅÕ½Ðì½ÉÕ¸½Ñ½ÉɽÉMÑ=Õн¥¸ÅÕ½ÐíèÀäÈíÕѽ¥Ñ}¥±ÌÀäÈíÑÍÐ¥±ÌÀäÈíÑÍÐĹÔÌÅÕ½Ðì½Õѽ¥ÐÍ¥ÈÅÕ½ÐíèÀäÈíAɽɴ¥±ÌÀäÈíÕѽ%ÐÌÀäÈíÑÅÕ½Ðì½UÍÉAɵÌ(¬ÐìÄàèÔÄèÔÔMÑÉÑ¥¹Õѽ%ÐÍ]ÉÁÁÈظĸä¸Ô¸Ø¹Ù¥É½¹µ¹Ð¡1¹ÕèÀÐÀä-å½ÉèÀÀÀÀÀÐÀä=Lé]%9}a@½MÉÙ¥A¬È
ATé`àؤ(ÐíIÕ¹¹¥¹TÍ
¡¬ ĸÔиÄȸÀ¤É½´éèÀäÈíAɽɴ¥±ÌÀäÈíÕѽ%ÐÌÀäÈíÑ(¬ÐìÄàèÔÄèÔÔTÍ
¡¬¹¹ÉèÀ(ÐíIÕ¹¹¥¹è ̸ȸÄÀ¸À¤éèÀäÈíAɽɴ¥±ÌÀäÈíÕѽ%ÐÌÀäÈíÑÀäÈíÕѽ¥Ð̹áÅÕ½ÐíèÀäÈíÕѽ¥Ñ}¥±ÌÀäÈíÑÍÐ¥±ÌÀäÈíÑÍÐĹÔÌÅÕ½Ðì(Ìäì°Ìäì°Ìäì¸Ìäìèàä°ääØ°ÌÄÈ°ÌÈĸÌÀ(Ìäì¸Ìäì°Ìäì°Ìäìèàä¸ääظÌÄȸÌÈÄ°ÌÀ(¬ÐìÄàèÔÄèÔØÕѽ%P̹ṹÉèÀ(Ðíá¥Ð½èÀQ¥µèĸÔÜÌ

Share this post


Link to post
Share on other sites

Posted

perhaps not so helpfull in all case

$nAmount = "89996312321,30"
ConsoleWrite("',', '.': " & $nAmount & @lf &_StringInsertSep($nAmount, ',', '.') & @LF)
ConsoleWrite("'.', ',': " & $nAmount & @lf & _StringInsertSep($nAmount, '.', ',') & @LF& @LF)
$nAmount = "89996312321.30"
ConsoleWrite("',', '.': " & $nAmount & @lf &_StringInsertSep($nAmount, ',', '.') & @LF)
ConsoleWrite("'.', ',': " & $nAmount & @lf & _StringInsertSep($nAmount, '.', ',') & @LF& @LF)
$nAmount = "89.996.312.321,30"
ConsoleWrite("',', '.': " & $nAmount & @lf &_StringInsertSep($nAmount, ',', '.') & @LF)
ConsoleWrite("'.', ',': " & $nAmount & @lf & _StringInsertSep($nAmount, '.', ',') & @LF& @LF)
$nAmount = "89,996,312,321.30"
ConsoleWrite("',', '.': " & $nAmount & @lf &_StringInsertSep($nAmount, ',', '.') & @LF)
ConsoleWrite("'.', ',': " & $nAmount & @lf & _StringInsertSep($nAmount, '.', ',') & @LF& @LF)

Share this post


Link to post
Share on other sites

Posted

What is wrong here?

$nAmount = "89996312321,30"
ConsoleWrite("',', '.': " & $nAmount & @lf &xStringAddComma($nAmount, ',', '.') & @LF)
ConsoleWrite("'.', ',': " & $nAmount & @lf & xStringAddComma($nAmount, '.', ',') & @LF& @LF)
$nAmount = "89996312321.30"
ConsoleWrite("',', '.': " & $nAmount & @lf &xStringAddComma($nAmount, ',', '.') & @LF)
ConsoleWrite("'.', ',': " & $nAmount & @lf & xStringAddComma($nAmount, '.', ',') & @LF& @LF)
$nAmount = "89.996.312.321,30"
ConsoleWrite("',', '.': " & $nAmount & @lf &xStringAddComma($nAmount, ',', '.') & @LF)
ConsoleWrite("'.', ',': " & $nAmount & @lf & xStringAddComma($nAmount, '.', ',') & @LF& @LF)
$nAmount = "89,996,312,321.30"
ConsoleWrite("',', '.': " & $nAmount & @lf &xStringAddComma($nAmount, ',', '.') & @LF)
ConsoleWrite("'.', ',': " & $nAmount & @lf & xStringAddComma($nAmount, '.', ',') & @LF& @LF)


Func xStringAddComma($sStr, $sSeparator = ',', $sEnd = '.')
    If $sSeparator = -1 Or $sSeparator = Default Then $sSeparator = ','
    If $sEnd = -1 Or $sEnd = Default Then $sEnd = '.'
    Local $aNum = StringSplit($sStr, '.,'), $l = StringLen($aNum[1]), $r = ''
    If $aNum[0] > 2 Then Return SetError(1, 0, $sStr)
    Switch $l
        Case 0 To 3
            Return StringRegExpReplace($sStr, '[.,]', $sEnd)
        Case Else
            For $i = 1 To Int($l / 3)
                $r = $sSeparator & StringRight($aNum[1], 3) & $r
                $aNum[1] = StringTrimRight($aNum[1], 3)
            Next
            $r = StringTrimLeft($aNum[1] & $r, $aNum[1] = '')
            If $aNum[0] > 1 Then $r &= $sEnd & $aNum[2]
            Return $r
    EndSwitch
EndFunc   ;==>xStringAddComma

Share this post


Link to post
Share on other sites

Posted

Any progress Ron?

Share this post


Link to post
Share on other sites

Posted (edited)

Any progress Ron?

Nope, to be honest I forgot about this.

I wasn't near a PC for 2 months, and during that time is when this thread started. I did tell jpm I would look at it when I got my PC actually set up, but I think I was having an issue truly understanding what the issue is or what you actually expected from the function.

Anyway, I'll find the PM from jpm and see if it tells me specifically what it is you all "thought" it should do, and if it can be easily rectified from how "I thought" it should be.

Edited by SmOke_N

Share this post


Link to post
Share on other sites

Posted (edited)

Here's a question, based on what Xeno wrote, am I to understand that Non-U.S. digits, that the "Decimal (term being used loosely here, as the divider from the decimal and the whole numbers)" can be either a comma or a decimal?

Having said that, and looking at the example that jpm has posted here and what Xeno wrote, am I to understand that you want a converter?

_StringAddComma was never intended to convert anything, only "Add" the desired Decimal/Comma value based on you knowing how it should be converted.

If the above statement isn't true, then maybe ya'll should switch to what Xeno wrote.

Edited by SmOke_N

Share this post


Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  
Followers 0




  • Recently Browsing   0 members

    No registered users viewing this page.