PdcCalculation.RecalcDatesPerOperation

From External Bemet Wiki
Revision as of 07:37, 15 April 2024 by TC (talk | contribs) (Created page with "== Declaration == ReadFromArticle(ArticleID as String) as Boolean == Description == Read an article in the calculation == Notes == This method reads a calculation of a standard article into the current calculation object. BEWARE; Beware that the save method in this case does NOT change the standard calculation but only the current calculation object. == Code example == This code example creates a new calculation, reads a standard calculation into it, changes the prod...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

ReadFromArticle(ArticleID as String) as Boolean

Description

Read an article in the calculation

Notes

This method reads a calculation of a standard article into the current calculation object.

BEWARE; Beware that the save method in this case does NOT change the standard calculation but only the current calculation object.

Code example

This code example creates a new calculation, reads a standard calculation into it, changes the production quantity and saves it.

dim objCalc

  set objCalc = pdc.NewCalculation
  if objCalc.ReadFromArticle("1234") then
    objCalc.OrderQuantity = 3
    objCalc.Save
    objCalc.Show
  else
    msgbox "Could not read article"
  end if

Availability