|
发表于 2012-4-10 00:08:54
|
显示全部楼层
[au3]msgbox(0, 0, stringleft($str, 2)& ':' & stringmid($str, 3,4) & ':' & stringright($string,2))[/au3]
[au3]#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $Number = '112233'
msgbox(0, '_WinAPI_GetNumberFormat', _WinAPI_GetNumberFormat(0, $Number, _WinAPI_CreateNumberFormatInfo(0, 1, 2, '', ':', 1)))
[/au3]
[au3]
Local $a, $str = '112233'
For $i = 1 To 3
$a &= StringLeft($str, 2) & ':'
$str = StringTrimLeft($str, 2)
Next
MsgBox(0, "", StringTrimRight($a, 1))
[/au3] |
评分
-
查看全部评分
|