How to Clear a Tabular Section?

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company: TLG Integration

How can I clear the tabular section of the catalog not by removing every item from it?

 
#2
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Nov 1, 2011
Company:

something like this?

Code
RowCount = CatalogObject.TabularSection.Count();

For i=1 To RowCount Do
   CatalogObject.TabularSection.Delete(RowCount-i);
EndDo;

 
#3
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company: TLG Integration

Well, I did the same, but if there is a way to do it running a single method of the TabularSection or something like that?

 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 1, 2011
Company:

RTFM
CatalogObject.TabularSection.Clear()

 
#5
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company: TLG Integration

Super! Thank you, Stanislav!

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.