Two ways to EditingTable?

Hello everyone, can someone help me? Thank you very much.
For the attribute information of the shapefile, I noticed that there are two ways to edit the attribute table.
One is to use StartEditingTable, EditCellValue, StopEditingTable directly in the Shapefile class. See
https://www.mapwindow.org/documentation/mapwingis4.9/class_shapefile.html
The other is to use StartEditingTable, EditCellValue, StopEditingTable in the Table class. See
https://www.mapwindow.org/documentation/mapwingis4.9/class_table.html#a033a0a52493a27ed47b3bcab88d302bb

What is the difference between these two methods?

Hello Henry,

Every Shapefile has a Table reference, so to use the Table-based methods, you would first ask for the Table reference from the Shapefile, then make the calls on the Table.

To simplify that process, you can make the same calls straight from the Shapefile (the Shapefile calls wrap up the Table calls in this case). So if you have a Shapefile reference, you can just use the Shapefile-based calls. If all you have is the Table reference, then your only choice is to use the Table-based calls, but this is not as common.

Hope that helps.

Jerry.

Thank you for your answers. Your answer is very detailed and clear. Now, I know the difference and connection between these two ways.

Best wishes.

Henry