contents.gifprev1.gifnext1.gif

CNVRT_LIQS() - Convert liquids

Converts a number from one liquid related measurement to another. Conversions between Teaspoon, Tablespoon, Fluid ounce, Cup, Pint, Quart, Gallon, and Liter.

Conversion table

Teaspoon
TSP
Tablespoon
TBS
Fluid ounce
OZ
Cup
CUP
Pint
PT
Quart
QT
Gallon
GAL
Liter
L
Returns

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

Arguments

Type
Field
Description
double
dNumber
Quantity
string
dFrom
Convert from
string
dTo
Convert to
16 bit DLL declarations

PowerBuilder Function declaration

function double CNVRT_LIQS(double dNumber, string dFrom, string dTo) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function CNVRT_LIQS lib "IFL16" (ByVal dNumber As Double, ByVal dFrom As String, ByVal dTo As String) As Double

C/C++ Synopsis

#include "function.h"

double CNVRT_LIQS(double dNumber, LPSTR dFrom, LPSTR dTo)

32 bit DLL declarations

PowerBuilder Function declaration

function double CNVRT_LIQS(double dNumber, string dFrom, string dTo) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function CNVRT_LIQS lib "IFL32" (ByVal dNumber As Double, ByVal dFrom As String, ByVal dTo As String) As Double

C/C++ Synopsis

#include "function.h"

double CNVRT_LIQS(double dNumber, LPSTR dFrom, LPSTR dTo)

Example:

dNumber
=
500

dFrom
=
tsp

dTo
=
cup

Result: 10.41667 (cups)