[progress Communities] [progress Openedge Abl] Forum Post: Re: Compiling Is Required Or Not

  • Thread starter Thread starter Mike Fechner
  • Start date Start date
Status
Not open for further replies.
M

Mike Fechner

Guest
Ask the one who installed OpenEdge for youi. Or just try to execute uncompiled code and see if it runs or errors. We use the following code to test for it at runtime. /*------------------------------------------------------------------------------ Purpose: Returns if the current session allows compilation of ABL source code Notes: Compiles a non existing .p file (random file name) and tests the error message. ** Compiler is not available in this version of PROGRESS. (494) @return Logical value indicating if the current session allows compilation ------------------------------------------------------------------------------*/ METHOD PUBLIC STATIC LOGICAL AllowsCompile (): COMPILE VALUE (SUBSTITUTE ("&1.p":U, GUID)) . RETURN TRUE . CATCH e AS Progress.Lang.Error : IF e:GetMessageNum (1) = 494 THEN RETURN FALSE . ELSE RETURN TRUE . END CATCH. END METHOD.

Continue reading...
 
Status
Not open for further replies.
Back
Top