Back to questions
JuniorTheoryCommon
What does the program print (lines separated by spaces)?
Продажи = Новый ТаблицаЗначений;
Продажи.Колонки.Добавить("Товар");
Продажи.Колонки.Добавить("Количество");
НоваяСтрока = Продажи.Добавить();
НоваяСтрока.Товар = "ручка";
НоваяСтрока.Количество = 3;
Продажи.Добавить();
Сообщить(Продажи.Количество());
Сообщить(Продажи[1].Товар = Неопределено);
Сообщить(Продажи.Колонки.Количество());2 Да 2
- Expecting a row with no cells assigned not to be added:
Добавить()adds it at the moment of the call - Expecting an unfilled cell to hold an empty string: it holds
Неопределено
- How do you give a value table column a type when you add it?
- How do you walk all rows of a value table?