thanks simon, i'll droping in that code now.
I had followed the information on the link you had posted, there were a couple of minor changes but I was still having some small questions as to how to loop through the records. I'll let you know how it goes.
why hasn't this been added into newer versions of progress?
it seems like a fairly useful and relatively easy function to add. I would have to say that in all the other programming languages i've used (c, java, web scripting) you can concatenate char strings to build dynamic loops or queries...
gordon we are using 9.1C17
simon:
I get what your saying about using the query-prepare and I'm going to try that right now.
One question I still have is why does it allow me (citing the original code) to dynamically add single variables to the for each statement, like 'var' and 'var2', but...
I'm fairly new to progress and I need a bit of help generating a for each statement that I can dynamically change.
this is what I have so far:
<clip>
define var as int.
var = 10.
for each record where record.id = var no-lock break by record.second-id:
more code
</clip>
instead of looking...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.