VB space 问题
PrivateSubCommand1_Click()DimaAsString*255GetComputerNamea,255a=Trim(a)a=Left(a,Len(a...
Private Sub Command1_Click()
Dim a As String * 255
GetComputerName a, 255
a = Trim(a)
a = Left(a, Len(a) - 1)
Print Len(a)
End Sub
Private Sub Command2_Click()
Dim a As String
a = Space(255)
GetComputerName a, 255
a = Trim(a)
a = Left(a, Len(a) - 1)
Print Len(a)
End Sub
上面两个按钮显示的信息不一样为什么呢?
Dim a As String * 255
和
Dim a As String
a = Space(255)
区别在哪为什么显示不一样 展开
Dim a As String * 255
GetComputerName a, 255
a = Trim(a)
a = Left(a, Len(a) - 1)
Print Len(a)
End Sub
Private Sub Command2_Click()
Dim a As String
a = Space(255)
GetComputerName a, 255
a = Trim(a)
a = Left(a, Len(a) - 1)
Print Len(a)
End Sub
上面两个按钮显示的信息不一样为什么呢?
Dim a As String * 255
和
Dim a As String
a = Space(255)
区别在哪为什么显示不一样 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询