//đoạn script này có nghĩa là gì vậy?//
function FormatNum(num)
If num<>"" then
num=CStr(num)
lenStr=Len(num)
if lenStr=9 then
num=Left(num,3)&"."&mid(num,3,3)&"."&Right(num,3)
elseif lenStr>6 and lenStr<9 then
num=Left(num,lenStr-6)&"."&mid(num,lenStr-6,3)&"."&Right(num,3)
elseif lenStr=6 then
num=Left(num,3)&"."&Right(num,3)
elseif lenStr>3 and lenStr<6 then
num=Left(num,lenStr-3)&"."&Right(num,3)
else 'nothing
End if
End if
FormatNum=num
end Function
Bookmarks