ValuesTable - the object that allows you to build a dynamic set of values and manipulate (add, edit, delete entries, sort). Can be filled with the values of any type, ie in one table types stored values may be different. The object of this type are not sohranyaetsyav database.
>Please explain what is the difference between TableBox, TabularSection and ValuesTable?
TabularSection - part of a document, manual, etc. Is not an independent object but only its part. All objects contain a TabularSection stored in the database.
Tablebox-control that enables you to work with a variety of lists, sets of records, as well as dynamic data sets and ValuesTable ValueTree.
Type a string value tablebox field depends on the type associated with the tabulated values of the field.
That is, is a visual representation of some data that migut be ValuesTable and TabularSection.
>Why when I drag a TabularSection on a form I can not do most things with it when accessing as Items.MyTabularSection which I can do with it when access it as Object.MyTabularSection?
Cause doing the drop on the form of drops is not a TabularSection Tableboh (connected with the original tabularsetstion (property DataPath)). And this is another type of object, and it has different properties and methods.
>And why I can not get the CurrentRow from Object.MyTabularSection while I can get it from Items.MyTabularSection?
As he wrote - it's different objects with different methods and properties.
In TabularSection no current row, it is a visual element forms TableBox.
If you want to get the line number corresponding TabularSection CurrentRow element tablebox, you can use the following code:
IndexCurrentRow = TabularSection.IndexOf(FormItems.TableBox.CurrentRow);
This returns a numeric value between 0 (if corresponding first row, there have not worked a rule: 1 = index number of the line). In the case of an unsuccessful search will be returned as the result of -1.
I apologize for my English.