M
M
mrgrigo2018-10-29 16:04:16
1C
mrgrigo, 2018-10-29 16:04:16

What does the Get() method of the ValueTable return?

Greetings.
The question is quite simple and stupid - what does the Get(<Index>) method of the table of values ​​return if the row with that index is not found? Syntax Assistant kept silent about this, and Google gives heresy in the form of articles and questions in general on other topics.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin, 2018-10-29
@mrgrigo

check experimentally)))
It is better to be postponed, in the subcortex.

V
Vadim Popov, 2018-10-31
@vadimpopov94

mrgrigo

Description:
Gets the value by index. Works similar to the [] operator.
Accordingly, if there is no element with such an index, an error will be raised. Before getting an element by index, it is better to check for the number
Если Таблица.Количество() > НужноеКоличество Тогда
 Значение = Таблица.Получить(индекс);
КонецЕсли;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question