PdcMaterialFile.ConvertUnitToUnitFactor

From External Bemet Wiki
Revision as of 07:44, 29 June 2020 by TC (talk | contribs) (Created page with "== Declaration == ConvertUnitToUnitFactor() == Description == Returns the factor from wich a unit to a unit conversion can be executed. This function uses the LM_STAM and LM_...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

ConvertUnitToUnitFactor()

Description

Returns the factor from wich a unit to a unit conversion can be executed. This function uses the LM_STAM and LM_GEW of a material for the calculation.

Notes

The function returns 0 if the LM_STAFM or LM_GEW isn't correctly filled.
The strUnitWeight is the unit which corresponds to the weightfactor, most likely the unit of the material in question.

Code example VB.NET

PDC.App.MasterData.MaterialFile.ConvertUnitToUnitFactor(strUnitFrom, strUnitTo, strUnitWeightFactor, strStandardSize, dblWeightFactor)

Availability

Available since Juli 2020 (from version 5.6)