contents.gifprev1.gifnext1.gif

PVDM() - Price variance

Calculates price variance of direct materials.

Returns

Double value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
double
dPrice
Price variance for direct materials
double
dStdPrice
Standard price of materials
double
dUnits
Number of materials used
16 bit DLL declarations

PowerBuilder Function declaration

function double PVDM(double dPrice, double dStdPrice, double dUnits) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function PVDM lib "IFL16" (ByVal dPrice As Double, ByVal dStdPrice As Double, ByVal dUnits As Double) As Double

C/C++ Synopsis

#include "function.h"

double PVDM(double dPrice, double dStdPrice, double dUnits)

32 bit DLL declarations

PowerBuilder Function declaration

function double PVDM(double dPrice, double dStdPrice, double dUnits) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function PVDM lib "IFL32" (ByVal dPrice As Double, ByVal dStdPrice As Double, ByVal dUnits As Double) As Double

C/C++ Synopsis

#include "function.h"

double PVDM(double dPrice, double dStdPrice, double dUnits)

Example:

dPrice
=
5.80

dStdPrice
=
6.00

dUnits
=
770

Result: - $ 154.00