Twitter: You are not allowed to view links. Register or LoginRSS лента: You are not allowed to view links. Register or Login
0 Пользователей и 1 Гость просматривают эту тему.
...SORT valtab BY ZWBGOSNUM ASCENDING.LOOP AT valtab....AT NEW ZWBGOSNUM....ENDAT.ENDLOOP.
Поле не уникальное и не ключевое. Наверное, тут могут быть какие-то нюансы. Подскажите, пожалуйста, в чём может быть дело.
Я так и делаю... В отладчике посмотрел содержимое внутренней таблицы - всё корректно отсортировано. Тем не менее, "AT NEW" отрабатывает на каждой строчке.
В общем, проблема решилась тем, что отказался от использования этого поля (гос. номер) и использовал внешний ключ (id ТС) который поместил в начало структуры, которую использую для вывода. Видимо, необходимо, чтобы поле стояло на первом месте.
Control levels are defined by the beginning or end of a group of lines with the same content in the component compi (where i = 1, 2, and so on) and in the components to the left of compi. The control breaks take place when the content of the component compi or another component to the left of compi changes.
AT NEW zwbsrn. "zwbgosnum. copycell 8 1 8 13 i 1...... crnt = i. i = i + 1.ENDAT...... i = i + 1.AT END OF zwbsrn. rcnt = i - crnt - 1. CONCATENATE '=sum(R[1]C:R[' rcnt ']C)' INTO sumrcrg. CONCATENATE '=sum(R[1]C:R[' rcnt ']C)' INTO sumfuel. CONCATENATE '=sum(R[1]C:R[' rcnt ']C)' INTO sumnorm. CONCATENATE '=sum(R[1]C:R[' rcnt ']C)' INTO sumfact. putcell crnt 4 sumrcrg. putcell crnt 8 sumfuel. putcell crnt 9 sumnorm. putcell crnt 10 sumfact.ENDAT.