zoukankan      html  css  js  c++  java
  • 金蝶VB插件,单据保存时总是触发GetFocus事件

    在做金蝶插件时,在保存时,总是触发GetFocus事件,让人很伤心啊

    Private Sub m_BillInterface_GotFocus(ByVal sKey As String, ByVal dctData As KFO.IDictionary, ByVal curDspValue As Variant, ByVal Col As Long, ByVal Row As Long, Cancel As Boolean)
        
        If (Row > 0 And r <> -110 And r <> Row And Not m_BillInterface.GetDataFldbyKey("FBillNo_SRC", Row) Is Nothing) Then  //Row为当前行索引,r为自定义变量,当保存时,r=-110;
                                                                           //r<>Row,防止它重复乱触发
    If (m_BillInterface.GetFieldValue("FBillNo_SRC", Row) <> "") Then If (sKey = "FInteger") Then r = Row                    //这一行很重要
  • 相关阅读:
    事后诸葛亮
    冲刺总结
    Alpha第十天
    Alpha第八天
    Alpha第九天
    Alpha第六天
    Alpha第七天
    Alpha第五天
    Python之pytesseract模块-实现OCR
    Selenium4 IDE初体验
  • 原文地址:https://www.cnblogs.com/erph/p/7347629.html
Copyright © 2011-2022 走看看