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

.



Relevant Pages

  • Re: Substituting break by
    ... > display prod-name pack skip. ... > def var by-name as log init no. ... > Thanks Martin ... Prev by Date: ...
    (comp.databases.progress)
  • Re: Newbie question: Pass String to Function
    ... > The problem is now how can i pass the new_session string to my ... > XMLRequest function? ... Martin ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: TreeView Control question
    ... Thanks, Martin, and I had better study c from the beginning again:) ... > The problem ist you have a temporal string, ... Prev by Date: ...
    (microsoft.public.win32.programmer.ui)
  • Re: Interger( a_symbol ) raises no exception
    ... > I now that there's a unique int associated to each Symbol, ... > think that a String like "42" IS more like an Integer, ... Prev by Date: ...
    (comp.lang.ruby)
  • regular expression from variable
    ... I need to build a regular expression where the expression contents are ... for example I have a string that i need to search for, ... Martin ... Prev by Date: ...
    (comp.lang.javascript)