Function DO_str (Byval target_str as String, Byval lenth as Integer) as StringDim i as Integer Dim empty_str as String For i = 1 to lenth empty_str = empty_str & " " Next i
DO_str = Right(empty_str & target_str, lenth)
用定长字串:Dim s As String * 8 s = "你好吗中往往外花朵达到" MsgBox Len(s)
Dim empty_str as String
For i = 1 to lenth
empty_str = empty_str & " "
Next i
DO_str = Right(empty_str & target_str, lenth)
s = "你好吗中往往外花朵达到"
MsgBox Len(s)