Consultor Eletrônico



Kbase P7798: 4GL. Source field of RAW-TRANSFER uses unknown version: 2. (
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/14/2003
Status: Unverified

FACT(s) (Environment):

Progress V9.1D

SYMPTOM(s):

4GL. Source field of RAW-TRANSFER uses unknown version: 2. (5059) with RAW-TRANSFER.

CAUSE:

Problem with RAW-TRANSFER when used within 9.1D

CAUSE:

BUG# 20020912-011 NPTF

FIX:

Possible workaround:
The version 9 code knows that when a version 9 record is stored into a version 8 raw field, it must reformat the version 9 record to be version 8 format. Therefore, the assignment in the example:

buffer-copy rdb.traw to rdb8.traw.

should be instead:

raw-transfer rdb.t1 to rdb8.traw.fraw.

If this code should be generic in nature, then they could try using the raw-transfer METHOD on the buffer handle to get the same effect:

rdb-buf-handle:raw-transfer(true, rdb8-traw-fraw-fld-handle)

where the handle to the buffer and handle to the field can be passed generically to some routine that does this.