Progress Programming Question

Progress can generate a .p file, then run it. So you could effectively do
almost anything of this nature.

----- Original Message -----
From: "jameswi2000" <jameswi2000@...>
To: <vantage@yahoogroups.com>
Sent: Tuesday, October 25, 2005 7:04 AM
Subject: [Vantage] Progress Programming Question


> I am wondering if Progress supports memory variable substitution. This
> is useful when processing a lot of variables with the same name
> appended by a numeric.
>
> Here is some pseudo code:
>
> DO i = 1 to 50:
> varName = "X" + STRING(i).
> DISPLAY &varName.
> END.
>
> The & treats the contents of the variable as a character string
> literal. That is, it does not display the contents of varName, but
> rather displays the contents of the variables X1...X50.
>
> Obviously there are some type DEFs and things missing, but this is just
> meant to illustrate the concept.
>
> Thanks,
> James
>
>
>
>
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
> Yahoo! Groups Links
>
>
>
>
>
>
I am wondering if Progress supports memory variable substitution. This
is useful when processing a lot of variables with the same name
appended by a numeric.

Here is some pseudo code:

DO i = 1 to 50:
varName = "X" + STRING(i).
DISPLAY &varName.
END.

The & treats the contents of the variable as a character string
literal. That is, it does not display the contents of varName, but
rather displays the contents of the variables X1...X50.

Obviously there are some type DEFs and things missing, but this is just
meant to illustrate the concept.

Thanks,
James