Methods for deleting elements in batches [reprinted]

Source: Internet
Author: User
[Reprinted] Method for deleting elements in batches
Http://www.gissky.net/blog/user1/yumao/16139.html

Yesterday I asked a person how to delete all the elements in the element class at one time and helped him find out the specific methods (such as deleteall removeall and other direct methods ), however, you can change your thinking from other ideas. Therefore, a method is found in the itable interface:Itable: deletesearchedrows
In fact, this method is used to delete the records in the selected table. The work und is to delete all elements so that all record elements can be searched, you can directly Delete this method.

experiment ---- Yes, no problem
Code ):
dim pmxd as imxdocument
set pmxd = thisdocument
dim plyr as ifeaturelayer
set plyr = pmxd. focusmap. layer (0)
dim ptable as itable
set ptable = plyr. featureclass ''qi
dim pqueryf as iqueryfilter'' defines the query condition object.
set pqueryf = new queryfilter, indicates to query all
ptable. deletesearchedrows pqueryf'' can be executed to delete records.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.