PdcCalculation.AutoRefresh: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == == Description == == Notes == == Code example == <source lang="vb"> </source> == Availability ==" |
No edit summary |
||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
AutoRefresh as Boolean | |||
== Description == | == Description == | ||
Line 6: | Line 6: | ||
== Notes == | == 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 == | == Code example == | ||
This code example sets the active calculation to AutoRefresh and then changes the CustomerArticleNo, this is then immediately visible for the user. | |||
<source lang="vb"> | <source lang="vb"> | ||
dim objCalc | |||
dim objOperation | |||
set objCalc = pdc.ActiveCalculation | |||
objCalc.AutoRefresh = true | |||
msgbox "No changes" | |||
objCalc.CustomerArticleNo = "test" | |||
msgbox "CustomerArticleNo added without save or refresh" | |||
</source> | </source> | ||
== Availability == | == Availability == |
Latest revision as of 08:58, 21 May 2012
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"