Dim lyr As MapXLib.Layer
Dim ds As MapXLib.Dataset
Dim ftrs As MapXLib.Features
Dim f As MapXLib.Feature
Dim rvs As MapXLib.RowValues
Dim rv As MapXLib.RowValue
   
'Get the layer to create a dataset for
Set lyr = Map1.Layers.Item("US Capitals")
   
'Open the dataset
Set ds = Map1.Datasets.Add(miDataSetLayer, lyr)
   
'Get the feature to update
Set ftrs = lyr.Search("capital like ""albany""")
Set f = ftrs.Item(1)
   
'Get the row to update
Set rvs = ds.RowValues(f)
   
'Get the column to update
Set rv = rvs.Item("Capital")
   
'Change the value
rv.Value = "New Albany"
   
'Update the feature and dataset with the new value
f.Update True, rvs
ds.Refresh

相关文章:

  • 2021-08-18
  • 2021-07-07
  • 2021-09-27
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
猜你喜欢
  • 2021-06-11
  • 2022-12-23
  • 2022-03-01
  • 2021-09-19
  • 2022-01-01
  • 2022-12-23
  • 2021-09-16
相关资源
相似解决方案