PdcCalculation.AutoRefresh

From External Bemet Wiki
Revision as of 08:58, 21 May 2012 by Mike (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

AutoRefresh as Boolean

Description

Notes

This property sets or returns the value for AutoRefresh. When this property is true the calculation is refreshed after each change executed from the script. This is specifically useful when the script manipulates an active calculation while the user watches the form, possibly to execute some manual changes. Without this property the form is only refreshed when explicitely coded to do so. See pdcCalculation.Refresh for more information.

Code example

This code example sets the active calculation to AutoRefresh and then changes the CustomerArticleNo, this is then immediately visible for the user.

dim objCalc
dim objOperation

  set objCalc = pdc.ActiveCalculation
  objCalc.AutoRefresh = true
  msgbox "No changes"
  objCalc.CustomerArticleNo = "test"
  msgbox "CustomerArticleNo added without save or refresh"

Availability