Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > How to Clear a Tabular Section?

Forum

Search UsersRules
How to Clear a Tabular Section?
#1
Active user
Points:: 3
Joined:: Sep 16, 2011

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

Profile
#2
Active user
Points:: 0
Joined:: Nov 1, 2011

something like this?

Code
RowCount = CatalogObject.TabularSection.Count();

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

Profile
#3
Active user
Points:: 3
Joined:: Sep 16, 2011

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?

Profile
#4
Just came
Points:: 1
Joined:: Nov 1, 2011

RTFM
CatalogObject.TabularSection.Clear()

Profile
#5
Active user
Points:: 3
Joined:: Sep 16, 2011

Super! Thank you, Stanislav!

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



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.