Skip to content

VAL

Converts character expression which contains a number to its numeric value so it can be used in calculations.

Reporting Area(s)

General

Required Parameters

  1. Character expression to convert to numeric value (i.e. rggrade)

Optional Parameters

None

Example(s)

VAL(rggrade) converts grade to its numeric value--IF--grade is stored as a number (i.e. 1, 2, 3, 4)

Notes

Standard FoxPro Function

NUM2STR
STR
TRANSFORM