Consultor Eletrônico



Kbase P67086: BEFORE-TABLE initializes subsequent variables to unknown (?)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/8/2004
Status: Verified

FACT(s) (Environment):

OpenEdge 10.0A

SYMPTOM(s):

Defining a TEMP-TABLE with the BEFORE-TABLE attribute causes subsequent
variables to lose their initial values.

Variables initial values are set to "?" (unknown), instead of the default "".

CAUSE:

Bug# 20040205-023

FIX:

Upgrade to 10.0A01 or later
A workaround for the issue is to define a non-before-table temp-table after the before-table definition.

define temp-table tt before-table btt field abc as char.
define temp-table ttDummy field fld1 as char.
def var i as int.
def var b as log.
message "initial vals should be 0 and no" i b.

This will produce the expected values of 0 and no.