Progress
ADM 2 Reference


bufferCopyDBToRO (query.p)

Performs a BUFFER–COPY of a database buffer to a row object buffer. In particular, if an assign–list is used to map individual array elements from the database buffer to the row object buffer, this procedure will ensure that the values are copied properly.

Parameters:

INPUT phRowObj AS HANDLE

Handle to the row object buffer that is to be the target of the BUFFER–COPY.

INPUT phBuffer AS HANDLE

Handle to the database buffer that is to be the source of the BUFFER–COPY.

INPUT pcExcludes AS CHARACTER

Comma-delimited list of fields to be excluded from the BUFFER–COPY.

INPUT pcAssigns AS CHARACTER

Comma-delimited list of field pairs to be individually copied. The field pairs are mappings of fields from the target/source buffers where the field names differ.

Returns: Nothing (procedure)

Notes: The primary purpose of this procedure is to detect when individual array fields are referenced in the assign–list (pcAssigns) from the database buffer and to ensure that they are copied properly. It is assumed that the database buffer is always the source of the BUFFER–COPY, so that the second field in the assign–list field pair is always where the individual array reference will be found (for example, pcAssigns = ROfld1,DBfld[1]”).


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095