EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

Main or Called Program

Discussion Topic

Discussion TopicMon May 09, 2016 06:07 PM

  • 1.  Main or Called Program

    Posted Mon May 09, 2016 05:41 PM

    Hi,

    If have the program defined without parameter call and inputRecord, this program is a Main ou Called program ?

     

    program XXPROG type TextUIProgram

    {includeReferencedFunctions = yes, allowUnqualifiedItemReferences = yes, throwNrfEofExceptions = yes,

     handleHardIOErrors = no, V60ExceptionCompatibility = yes, I4GLItemsNullable = no, textLiteralDefaultIsString = no,

     localSQLScope = yes, segmented = yes}

     

    or I need add () no parameter to Called program

     

    program XXPROG type TextUIProgram()

    {includeReferencedFunctions = yes, allowUnqualifiedItemReferences = yes, throwNrfEofExceptions = yes, 

     handleHardIOErrors = no, V60ExceptionCompatibility = yes, I4GLItemsNullable = no, textLiteralDefaultIsString = no, 

     localSQLScope = yes, segmented = yes}

     

    Thanks !

    Hsieh


  • 2.  Re: Main or Called Program

    Posted Mon May 09, 2016 05:52 PM

    Hsieh,

     

    The existence of the "()"  whether it is empty or filled with parameters is what determines whether it is a main or called.

     

    So your first example is "main" and the second is a called program.

     

    Mark
     

    markevans


  • 3.  Re: Main or Called Program

    Posted Mon May 09, 2016 06:07 PM

    Thanks ! Mark

    Hsieh