StrLen

文字列の中に何文字あるかを取得します。

Length := StrLen(String)

パラメータ

String

型:文字列

カウント対象の文字列です。

戻り値

型:整数

この関数は、指定された文字列の長さを返します。

InStr, SubStr, Trim, StrLower, StrUpper, StrPut, StrGet, StrReplace, StrSplit

文字列の文字数を取得して返します。

StrValue := "The quick brown fox jumps over the lazy dog"
MsgBox "The length of the string is " StrLen(StrValue) ; Result: 43