i've been trying last item of table after iterated through using for each
statement , using last-of
last one, it's getting items instead of getting last one. needs done inside for each
because i'm populating website template(.tpl
) data.
tables:
table
has 2 items
here's theoretical code:
for each table no-lock break table.tab-code. if last-of (table.tab-code) do: disp "last one". end. else do: disp "not last one". end. end.
output:
last 1 last 1
last-of give last instance of each value of table.tab_code, if have 3 distinct values, test last instance of each of distinct values.
what looking
if last(table.tab-code)
Comments
Post a Comment