Load and with

Anybody can explain the difference between load and with functions?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Load() function : a Local variable's variable is only calculated the first time when the expression is evaluated. In other words you can also say, Load variables are evaluated only once when the form loads.
    With() function : a local variable's value is re-calculated when the expression is reevaluated.
    Performance wise load() is faster than with() because of only one execution.

    Thanks,
    Ravi.
Reply
  • 0
    Certified Lead Developer
    Load() function : a Local variable's variable is only calculated the first time when the expression is evaluated. In other words you can also say, Load variables are evaluated only once when the form loads.
    With() function : a local variable's value is re-calculated when the expression is reevaluated.
    Performance wise load() is faster than with() because of only one execution.

    Thanks,
    Ravi.
Children
No Data