function DoTrimProperly(str
dim strRet
strRet = Server
strRet = replace(strRet
strRet = replace(strRet
if (LEN(strRet) > nNamedFormat) Then
strRet = LEFT(strRet
if (properly =
Dim TempArray
TempArray = split(strRet
Dim n
strRet = ""
for n =
strRet = strRet & " " & TempArray(n)
next
End if
if (pointed =
strRet = strRet & points
End if
End if
DoTrimProperly = strRet
End Function
Function FormatStr(String)
on Error resume next
String = Replace(String
String = Replace(String
String = Replace(String
String = Replace(String
String = Replace(String
FormatStr = String
Function FormatStr(String)
on Error resume next
String = Replace(String
String = Replace(String
String = Replace(String
String = Replace(String
String = Replace(String
String = Replace(String
FormatStr = String
End Function
From:http://tw.wingwit.com/Article/program/net/201311/14373.html