Skip to main content
May 17, 2023
Solved

Usage of DataBuffer1, DataBuffer2

  • May 17, 2023
  • 1 reply
  • 0 views

Hi Experts,

When do we exactly use DataBuffer1, DataBuffer2 in rules. while we have databuffer in api.

much appreciate if one example can be provided atleast

    Best answer by JackLacava

    They are available only in an Eval sub. Eval effectively stops execution of the Calculate formula, and hands control to the specified sub; when it happens, the buffer resulting from previous execution steps is exposed in eventArgs.DataBuffer1, to be eventually replaced by what you'll store in eventArgs.DataBufferResult.

    Search documentation for Eval, there are examples and Snippets.

    1 reply

    May 17, 2023

    Are you referring to eventArgs.DataBuffer1 ?

    BCGAuthor
    May 17, 2023

    yea JackLacva

    May 17, 2023

    They are available only in an Eval sub. Eval effectively stops execution of the Calculate formula, and hands control to the specified sub; when it happens, the buffer resulting from previous execution steps is exposed in eventArgs.DataBuffer1, to be eventually replaced by what you'll store in eventArgs.DataBufferResult.

    Search documentation for Eval, there are examples and Snippets.