The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
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: 0 Yes / 0 No
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: 0 Yes / 0 No
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: 0 Yes / 0 No
Just came
Rating: 1
Joined: Nov 1, 2011
Company:

RTFM
CatalogObject.TabularSection.Clear()

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

Super! Thank you, Stanislav!

 
Subscribe
Users browsing this topic (guests: 2, registered: 0, hidden: 0)