Private Sub vsfg_ChangeEdit()
 If vsfg.Row > 0 And vsfg.Col = 6 Then
    Dim aaa As String        
    aaa= vsfg.TextMatrix(vsfg.Row, 6)
 End If
End SubFired after the text in the editor has changed.
ChangeEdit发生在has changed,为什么aaa的值是发生事件之前的如果设断点Private Sub vsfg_ChangeEdit,则aaa就是发生之后的这列为ComboList,我就是想取得选取之后的值,并且根据其值在此时做其它动作,不能是AfterEdit时发生

解决方案 »

  1.   

    这不是BUG!!
    用这个属性:TextEdit
      

  2.   

    这样很不爽其它事件中取得这个值用TextMatrix,而此时用EditText如果有一个函数调用此值还要给这个函数多写个参数,不爽
      

  3.   

    With VSFlexGrid
            lcount = .Rows
            If lcount > 0 Then
                For i = 1 To lcount - 1
                    icost = CDbl(Val(.TextMatrix(i, 5)) * Val(.TextMatrix(i, 15)))
                    icosts = icosts + icost
                    scost = CDbl(Val(.TextMatrix(i, 5)) * Val(.TextMatrix(i, 7)))
                    scosts = scosts + scost
                Next i
            End If
        End With给参数都不行
      

  4.   

    上面是一个函数里的,是公共的,任何事件都可能调用,包括vsfg_ChangeEdit这个事件怎么办????????