"Begins Input" Examples - Forum - OpenEdge Development - Progress Community
 Forum

"Begins Input" Examples

This question is answered

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.

Verified Answer
  • Hi!
    Somewhere you have a PROMPT-FOR statement like
    REPEAT: 
    PROMPT-FOR Customer.Name . 
    FIND first Customer where Customer.NAME BEGINS INPUT  Customer.Name NO-ERROR. 
    END.
     

    &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.

     

     
     
     
    Regards
    Elpool i Umeå AB
    Anders Olsson
    Från: Joseph Kreifels [mailto:bounce-jkdos@community.progress.com]
    Skickat: den 15 februari 2016 16:19
    Till: CodeShare@community.progress.com
    Ämne: [Code Share - Forum] "Begins Input" Examples
     
    Update from Progress Community
     

    I'm still very new to Progress. I did't learn it in college, and didn't know it was a think 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't 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

    View online

     

    You received this notification because you subscribed to the forum.  To stop receiving updates from only this thread, go here.

    Flag this post as spam/abuse.

     
All Replies
  • Hi!
    Somewhere you have a PROMPT-FOR statement like
    REPEAT: 
    PROMPT-FOR Customer.Name . 
    FIND first Customer where Customer.NAME BEGINS INPUT  Customer.Name NO-ERROR. 
    END.
     

    &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.

     

     
     
     
    Regards
    Elpool i Umeå AB
    Anders Olsson
    Från: Joseph Kreifels [mailto:bounce-jkdos@community.progress.com]
    Skickat: den 15 februari 2016 16:19
    Till: CodeShare@community.progress.com
    Ämne: [Code Share - Forum] "Begins Input" Examples
     
    Update from Progress Community
     

    I'm still very new to Progress. I did't learn it in college, and didn't know it was a think 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't 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

    View online

     

    You received this notification because you subscribed to the forum.  To stop receiving updates from only this thread, go here.

    Flag this post as spam/abuse.

     
  • 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