断魂6.9连接失败的解决方法
答案:2 悬赏:10 手机版
解决时间 2021-04-30 05:46
- 提问者网友:最爱你的唇
- 2021-04-29 12:15
断魂6.9连接失败的解决方法
最佳答案
- 五星知识达人网友:掌灯师
- 2021-04-29 12:47
Private Sub Command1_Click()
Dim s As String
Dim str() As String
Dim V As Variant
Dim n As Integer
Dim intF As Integer
n = 0
s = "2,4,6-10"
V = Split(s, ",")
For i = 0 To UBound(V)
intF = InStr(1, CStr(V(i)), "-", vbBinaryCompare)
If intF > 0 Then
For j = Val(Left(CStr(V(i)), intF - 1)) To Val(Right(CStr(V(i)), Len(V(i)) - intF))
n = n + 1
ReDim Preserve str(n) As String
str(n - 1) = j
Next
Else
n = n + 1
ReDim Preserve str(n) As String
str(n - 1) = V(i)
End If
Next
Print n
For i = 0 To n
Print str(i)
Next
End Sub
Dim s As String
Dim str() As String
Dim V As Variant
Dim n As Integer
Dim intF As Integer
n = 0
s = "2,4,6-10"
V = Split(s, ",")
For i = 0 To UBound(V)
intF = InStr(1, CStr(V(i)), "-", vbBinaryCompare)
If intF > 0 Then
For j = Val(Left(CStr(V(i)), intF - 1)) To Val(Right(CStr(V(i)), Len(V(i)) - intF))
n = n + 1
ReDim Preserve str(n) As String
str(n - 1) = j
Next
Else
n = n + 1
ReDim Preserve str(n) As String
str(n - 1) = V(i)
End If
Next
Print n
For i = 0 To n
Print str(i)
Next
End Sub
全部回答
- 1楼网友:旧脸谱
- 2021-04-29 14:24
把服务器改成127.0.0.2—127.0.0.99
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯