Home >
Back-end > Validation: UnicodeString characters, usually in 2 bytes width, also have 4 bytes wide
Validation: UnicodeString characters, usually in 2 bytes width, also have 4 bytes wide
UnicodeString s=L "?????? ";
ShowMessage (s.L ength ());
Result: 4
Therefore, you cannot use Length divided by 2 to get the number of characters in a string,