Consultor Eletrônico



Kbase 17350: How does Progress deal with tilde (~) control chars?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/26/2005
Status: Verified

GOAL:

How does Progress deal with tilde (~) control chars?

FIX:

When a tilde (~) control character is stored in a database field, Progress does not convert the tilde to a control character at runtime. Progress does the conversion at compile time.

For example, you might invoke a compressed printing mode with the following:
DEF VAR a AS CHAR INITIAL "~033&k2S".
PUT CONTROL a.

This works without problem. The following, however, does not work:

1) Create a field in the customer table called "a".

2) Store the string "~033&k2S" in customer.a.

3) PUT CONTROL customer.a.

The first example works because Progress sees the string at compile time and does the proper conversion. In the second example, the string comes from a database field at runtime, and Progress does no conversion.