回 帖 发 新 帖 刷新版面

主题:帮我解释一下这程序,谢谢!

Private Sub cmdOK_Click()
    Dim sql As String
    Dim rs As New ADODB.Recordset
    binputFlag = False     这是什么意思?
    Call checkInput
    If binputFlag = True Then
        If ichangeFlag = 1 Then
            Call addCompany
            Call addPerson
            Call createNum
            Call init
        Else
            sql = "select * from Company where ComName='" & Me.comComName.Text & "'"
            Set rs = getRS(sql)
            If rs.EOF = True Then
                Call addCompany
            End If
            sql = "update Personal set ClientName='" & Me.textName & "',Gender='"
            sql = sql & Me.comGender.Text & "',Age=" & Me.textAge
            sql = sql & ",Company='" & Me.comComName.Text
            sql = sql & "',CPosition='" & Me.textPosition & "',Address='" & Me.textAddress
            sql = sql & "',Code='" & Me.textCode & "',Tel='" & Me.textPerTel
            sql = sql & "',MobileTel='" & Me.textMobileTel & "',FaxNumber='"
            sql = sql & Me.textPerFax & "',Email='" & Me.textEmail & "'"从上sq1到下sq1`的这一段是什么意思?
            If Me.textBirthday <> "" Then
               sql = sql & ",Birthday=#" & Me.textBirthday & "#"
            End If
            sql = sql & " where ClientID='" & Me.textClientID & "'"
            Call TransactSQL(sql)                      '修改个人信息
            MsgBox "已经修改客户信息!", vbOKOnly + vbExclamation, "提示"
            Unload Me
            sql = "select * from Personal where ClientID='" & Me.textClientID & "'"
            Call frmPerResult.showTopic                 '显示结果
            Call frmPerResult.showData(sql)
            frmPerResult.ZOrder 0
        End If
    End If
End Sub

回复列表 (共5个回复)

沙发

说是vc程序,你有没文件头,也没有public标识符,你用的是什么语言哦?

板凳

2楼的太菜了.这是用VB 6写的

3 楼

是用VB写的

4 楼

这确实不是VC++的东东

5 楼

binputFlag = False     这是什么意思?
一个状态标志 控制条件语句的执行

我来回复

您尚未登录,请登录后再回复。点此登录或注册