急求vb6.0 升級到 vb2005
vb6.0中LenB()方法
升級到vb2005
應該怎麽解決
[解决办法]
没搞过vb6
[解决办法]
帮你顶.
[解决办法]
LenB() == String.Length?
[解决办法]
用System.Text.Encoding.Default.GetByteCount(XX) 或System.Text.Encoding.Default.GetBytes(XX).Length),例
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim aa As String = "你好haha "
Debug.WriteLine(aa.Length & "- " & Len(aa) & "- " _
& System.Text.Encoding.Default.GetByteCount(aa) & "- " _
& System.Text.Encoding.Default.GetBytes(aa).Length)
End Sub
End Class
[解决办法]
结构体要获取长度干什么...
[解决办法]
是这个意思吗?
Public Structure cinfo
Public name As String
Public age As String
End Structure
Dim hh As cinfo
hh.name = "haha "
Debug.WriteLine(System.Text.Encoding.Default.GetBytes(hh.name).Length)
5555,这20分真不好得
[解决办法]
你那个帖子,我给你写了一个,你看行不,我可是黔驴技穷喽,呵呵
[解决办法]
用System.Text.Encoding.Default.GetByteCount(XX) 或System.Text.Encoding.Default.GetBytes(XX).Length),