Hi,
Do we always required a .r to be created to run any .p/.w? Or is there any way to run a .p/.w directly without compiling again and again?
Any help will be highly appreciated.
Thanks,
Ankit
A development license can run .p/.w/.cls from source code (doing session compile JIT).
A runtime license does not have this capability.
Thanks Mike.
But how can I check that which type of licence I have?
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.
DISPLAY PROGRESS.
Returns one of the following character values which identifies the ABL product that is running:
Full, Query or Run-time. Can also return COMPILE if you use the Developer’s Toolkit, or
COMPILE-ENCRYPT if you use the run-time Compiler.
Hi Marco,
It displays "Full". Is it means it have the capability to run the source code directly without generating the .r? Am I correct?
Yes. Of course you could always just try it!