I'm still very new to Progress. I did't learn it in college, and didn't know it was a thing until I started working in it. I had a good friend and mentor that was teaching me progress, but I lost him unfortunately after just half a year of learning from him. So I'm lost time to time.
There is a lot more I want to learn so I know what I'm looking at when maintaining programs/code.
I'm seeing the term "Begins Input" used in a project. How ever, it's being used in a include statement so It's really hard to follow
&sfields1 = "frtfact.plntno begins input frtfact.plntno and
And
find first {&filename} no-lock where {&wherep} {&and}
{&sfields1}
Can I get a get a very simple example of "Begins Input" being used? Also, an explanation for what it does?
We use Progress 10.2b on a Linux server. So make sure your examples don't contain any WIndows or Java code in it.
Thank You
EDIT:
If you need further info from me, just ask.
&filename = Customer
&and = and
&wherep = Customer.custnum > 0
&sfields1 = Customer.Name begins input Customer.Name
find first {&filename} no-lock where
{&wherep} {&and}
{&sfields1}
Will be
find first Customer no-lock
where Customer.custnum > 0 and
Customer.Name begins input Customer.Name
in compile time.
|
&filename = Customer
&and = and
&wherep = Customer.custnum > 0
&sfields1 = Customer.Name begins input Customer.Name
find first {&filename} no-lock where
{&wherep} {&and}
{&sfields1}
Will be
find first Customer no-lock
where Customer.custnum > 0 and
Customer.Name begins input Customer.Name
in compile time.
|
I see you code contains preprocessor constructs.
It may help you to understand the code if you generate a preprocess listing
compile sourcename.p preprocess sourcename.pp