Kbase P53574: Function fires twice when used in RUN <procedure> ON <functi
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/13/2003 |
|
Status: Verified
SYMPTOM(s):
Function fires twice when used in "RUN <procedure> ON <function>"
Function is used to return server handle
If the function result is stored in a variable and the variable is used in the statement "RUN <procedure> ON <variable>", function is executed once
Using AppServer
CAUSE:
When the function is called the interpreter determines that a server is involved and the handle is evaluated to check that it is valid before being used. This is the first execution. Then, the standard execution of the function is called as expected
FIX:
This is expected behaviour
The handle of the server should be stored in a variable which is used in the "RUN...ON" statement therefore the initial evaluation is not required