How to get a string byte in VB

xiaoxiao2021-03-06  41

Label1.caption =

LeNB (StrConv (TEXT1.TEXT, VBFROMUNICODE)) If you use the Len function, the number of characters is taken. E.g:

Dim Str As String

Str = 'China China1'

LEN (STR) = 8

Lenb (Str, Vbfromunicode) = 10

That is, Chinese characters are two bytes

转载请注明原文地址:https://www.9cbs.com/read-75419.html

New Post(0)