标题:VB块Else没有End If
取消只看楼主
leziyi
Rank: 1
等 级:新手上路
帖 子:52
专家分:0
注 册:2016-10-30
结帖率:85.71%
 问题点数:0 回复次数:0 
VB块Else没有End If
Private Sub Com_Send_Click()
Dim h
If Com_Send.Caption = "发送文件" Then
        If FileLen > 0 And FilePath <> "" Then
           For h = 0 To Winsock2.UBound
               Winsock2(h).SendData UTF8_Encode("101")
               Winsock2(h).SendData UTF8_Encode(filename)
               Com_Send.Caption = "取消发送"
               SendFile.Text = "正在等待对方响应......"
               FileSend = True
        Else-----------------------------------此行出错
            MsgBox "尚未选择文件或文件长度为零", 64, "提示"
        End If
    Else
        MsgBox "请先建立连接!", 64, "提示"
Else
    Winsock2.SendData UTF8_Encode("255")
    FileSend = False
    Com_Send.Caption = "发送文件"
    Label4 = "工作状态:空闲"
End If
End Sub
搜索更多相关主题的帖子: VB End If Caption 文件 
2018-11-03 22:10



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-490967-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.554728 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved