Len

  利用Len可以知道字串的長度,例:

Label1.Caption = "小小菜的PYC Choice"
MsgBox "共有" & Len(Label1.Caption) & "個字"

結果:共有14個字


上一頁