Setting the IFieldEdit.Editable Property to True does not work as expected.
上次发布: August 25, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM074831
已提交
November 1, 2011
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
10.0
操作系统
Windows OS
操作系统版本
7 64 Bit
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
The IFieldEdit.IsEditable property is used to define fields that are only editable by the geodatabase and ArcGIS applications.
解决办法
Using the IFieldInfo3.Readonly Property for the same works as expected:Public Sub UsingFieldInfo() Dim pMap As IMap Dim pMxDoc As IMxDocument Set pMxDoc = ThisDocument Set pMap = pMxDoc.FocusMap Dim pFlayer As IFeatureLayer Set pFlayer = pMap.Layer(0) Dim pLayerfields As ILayerFields Set pLayerfields = pFlayer Dim pFieldInfo3 As IFieldInfo3 Set pFieldInfo3 = pLayerfields.FieldInfo(5) pFieldInfo3.Readonly = FalseEnd Sub