应为语句结束怎么解决?求修改下列语句!

应为语句结束怎么解决?求修改下列语句!
Module Module1
Sub Main()
Dim bUse() As Boolean
Dim lStr() As String * 1
Dim nCount As Byte
End Sub
Public Sub Combination(ByVal lstStr As String)
Dim i As Byte
Dim j As Byte
Dim StrLen As Byte
StrLen = Len(lstStr)
ReDim bUse(1 To StrLen) As Boolean
ReDim lStr(1 To StrLen) As String * 1
For i = 1 To StrLen
lStr(i) = Mid(lstStr,i,1)
Next
For i = 1 To StrLen
nCount = i
GoWith(StrLen,1,0,"")
Next
End Sub
Dim bUse() As Boolean
Dim lStr() As String * 1
Dim nCount As Byte
Public Sub GoWith(ByVal ECount As Byte,ByVal nStart As Byte,ByVal Deep As Byte,ByVal lastStr As String)
Dim i As Byte
If Deep = nCount Then
Debug.Print(lastStr)
Exit Sub
End If
For i = nStart To ECount
If Not bUse(i) Then
bUse(i) = True
GoWith(ECount,i,Deep + 1,lastStr & lStr(i))
bUse(i) = False
End If
Next
End Sub
Private Sub Form_Load()
Combination("wxyz")
End Sub
End Module
hzyh119 1年前 已收到1个回答 举报

西上鱼 幼苗

共回答了19个问题采纳率:89.5% 举报

你是不是要改成这个样子?以下代码在vb6下调试通过修改模块代码如下Dim bUse() As BooleanDim lStr() As String * 1Dim nCount As BytePublic Sub Combination(ByVal lstStr As String)Dim i As ByteDim j As ByteDim...

1年前

2
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.030 s. - webmaster@yulucn.com