PdcCalculations.Active: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == Active as PdcCalculation == Description == Returns the active calculation object == Notes == The ActiveCalculation property contains the calculation cu..." |
No edit summary |
||
Line 14: | Line 14: | ||
dim objCalc | dim objCalc | ||
set objCalc = pdc. | set objCalc = pdc.Calculations.Active | ||
if IsValid(objCalc) then | if IsValid(objCalc) then | ||
objCalc.SelectHeader | objCalc.SelectHeader |
Latest revision as of 12:12, 11 April 2014
Declaration
Active as PdcCalculation
Description
Returns the active calculation object
Notes
The ActiveCalculation property contains the calculation currently opened in Plan-de-CAMpagne.
Code example
This code opens the active calculation as object and fills user field 1.
dim objCalc
set objCalc = pdc.Calculations.Active
if IsValid(objCalc) then
objCalc.SelectHeader
objCalc.UserString(0) = "Userfield populated by script."
objCalc.Refresh
else
msgbox "No calculation open, script cannot proceed."
end if
set objCalc = nothing
Availability
Available since April 2014 (version 4.3 onwards).