Consultor Eletrônico



Kbase P77047: How to assign a Decimal variable to a Character
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/10/2004
Status: Unverified

GOAL:

How to assign a Decimal variable to a Character

GOAL:

How to assign a Integer variable to a Character

FACT(s) (Environment):

Progress 8.x

FACT(s) (Environment):

Progress 9.x

FACT(s) (Environment):

OpenEdge 10.x

FIX:


The STRING function allows to convert a value of any data type (such as Decimal, Integer) into a character value.

For example:
  DEFINE VARIABLE decVariable AS DECIMAL NO-UNDO.
  DEFINE VARIABLE cVariable AS CHARACTER NO-UNDO.

  decVariable = 3.14.

  cVariable = STRING(decVariable).

  DISPLAY cVariable.