Substituting break by for example I have this:
for each product where prod-name begins "a":
display prod-name pack skip.
end.
I wanted to put in a conditional "break by" using a string like so:
def var by-name as char init "break by prod-name".
for each product where prod-name begins "a" by-name:
display prod-name pack skip.
end.
this failed.
Then I tried it with a logical like so:
def var by-name as log init no.
for each product where prod-name begins "a"
if by-name = no then break by pack
else break by prod-name:
display prod-name pack skip.
end.
This also failed. Is there a way of doing this without using a .i file?
Thanks Martin |