Consultor Eletrônico



Kbase P22373: Progress keywords can be defined as variables
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   01/04/2003
Status: Unverified

FACT(s) (Environment):

Progress 8.x

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

Progress keywords can be defined as variables

GT operator can be defined as variable

LT operator can be defined as variable

EQ operator can be defined as variable

CAUSE:

bug# 20030401-002

CAUSE:

GT, LT, EQ can all be defined as variables, and under circumstances work ok:

def var gt as char.
def var test-var as char.

assign gt = "test"
test-var = "test".

disp gt
test-var.

But this doesn't:

def var gt as char.
def var test-var as char.

assign test-var = "test"
gt = "test".

disp gt
test-var.

FIX:

In the event of errors appearing, the GT, LT, EQ operators would need to be replaced by the operator symbols, i.e. >, <, =.
In general, don't use Progress keywords as variable names.