金蝶bos开发如何在插件中获取某个单元格的锁定状态

如何在插件中获取某个单元格的锁定状态

使用 IsFieldLockRuntime, 例子如下:
Dim dctField As KFO.Dictionary
    Dim sPKey As String
    Dim lIndex As Long
    Set dctField = m_BillInterface.GetFieldInfoByKey(""FText"", sPKey, lIndex)
    If m_BillInterface.BillCtl.IsFieldLockRuntime(dctField, 1) Then
        MsgBox ""locked""
    Else
        MsgBox ""not locked""
    End If
    Set dctField = Nothing

 

posted @ 2019-10-11 15:49  唐尧  阅读(530)  评论(0编辑  收藏  举报