Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    9

    Unanswered: EvaluateAfter(x) function

    Has anyone used this function before? What is the correct syntax?

  2. #2
    Join Date
    Sep 2006
    Posts
    30
    hi
    This function can be used to force one formula to be evaluated after another. For example, two separate formulas in your report may have the same evaluation time or they appear in the same section of the report and, therefore, are automatically evaluated while records are printing.

    EvaluateAfter({@Variable})
    Forces the formula to wait until the @SetVariable formula has completed calculations.
    if u need more clarification contact me on pavan.ponnapalli@cognizant.com

  3. #3
    Join Date
    Nov 2005
    Location
    San Francisco, CA
    Posts
    506
    FYI,
    Example :

    Code:
    Formula A
    Local NumberVar x;
    x := 10;
    Code:
    Formula B
    EvaluateAfter ({@Formula A})
    Local NumberVar x;
    x := x + 1;
    The function call EvaluateAfter ({@Formula A}) ensures that Formula B will
    be evaluated after Formula A is evaluated. Formula A returns a value of 10
    and Formula B returns a value of 1. Formula B does not have access to
    Formula A’s x and thus cannot use the value of 10 and add 1; instead, it uses
    the default value for the uninitialized local variable x found in Formula B,
    which is 0, and adds 1 to it to get 1.
    Success is the ability to go from one failure to another with no loss of enthusiasm.
    - Sir Winston Churchill
    Joydeep

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •