Public Function PadLeft(ByVal s As String, ByVal i As Integer, ByVal c As String)
    If i > LenB(s) Then
        PadLeft = String(i - LenB(StrConv(s, vbFromUnicode)), c) & s
    Else
        PadLeft = s
    End If
End Function
Public Function PadRight(ByVal s As String, ByVal i As Integer, ByVal c As String)
    If i > LenB(s) Then
        PadRight = s & String(i - LenB(StrConv(s, vbFromUnicode)), c)
    Else
        PadRight = s
    End If
End Function

相关文章:

  • 2022-12-23
  • 2021-08-08
  • 2021-07-19
  • 2022-12-23
  • 2021-11-23
  • 2021-10-16
  • 2022-12-23
猜你喜欢
  • 2022-01-06
  • 2021-07-09
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2023-02-06
相关资源
相似解决方案