EDIT: Converting the Format of a Field

How to:

The EDIT function converts an alphanumeric field that contains numeric characters to numeric format or converts a numeric field to alphanumeric format.

This function is useful for manipulating a field in an expression that performs an operation that requires operands in a particular format.

When EDIT assigns a converted value to a new field, the format of the new field must correspond to the format of the returned value. For example, if EDIT converts a numeric field to alphanumeric format, you must give the new field an alphanumeric format:

DEFINE ALPHAPRICE/A6 = EDIT(PRICE);

EDIT deals with a symbol in the following way:

Syntax: How to Convert the Format of a Field

EDIT(fieldname);

where:

fieldname
Alphanumeric or Numeric

Is the field name.

Example: Converting From Numeric to Alphanumeric Format

WebFOCUS

Feedback