<< Click to Display Table of Contents >>
Manual > Control Reference > Route > Route Methods >
Gets the number of bytes in a string.
syntax
MBStrLen(
str
)
Parameters
Type:
character
character.
Return Value
Number of bytes.
Explanation
Gets the number of bytes in a string. Full-width characters are counted as 2.
Example
If full-width characters are included
var a = ::MBStrLen("aiuabc"); // The return value of MBStrLen is 9
Supported
○
Script Action
Can be used in server script Ver2 actions
Browser script
Can be used in browser scripts
Calculation formula syntax
Can be used in expression syntax (e.g. bind syntax)
reference
StrLen
MBStrLen
LeftStr
RightStr
MidStr
FindStr
IsLike
InsertStr
RepeatInsertStr
CombineStr
DivideStr
TrimLeftStr
TrimRightStr
UpperStr
LowerStr
ReplaceStr
ReverseStr
CStrToArray
CArrayToStr
CCsvToArray
CArrayToCsv
Chr
Ascii
RET
IntStrs
IsFullWidthChar
MeasureStr