ResultFormat

(ODBC Manager Library)

Description:              Subroutine to convert 2-d array as returned from query in the form, Arr[Field][Rec], to a normalized format of Arr[Rec][Field]. 

                                    For single record reads, this function returns a single dimension array Arr[N] where N is the number of fields.

Returns:                    Array

Usage:                       Script

 Format:                    \ODBCManager\ResultFormatDataArray, MakeSingle )

Parameters:          DataArray    { array }  { required }  { no default: }

                             An array of fields and records to transpose

                             MakeSingle   { Boolean }  { required }  { no default: }

                             If true (1), and if the array size is 1 this indicates that the a single dimension array should be returned.

Comments:               This module is a member of the ODBCManager Library, and must therefore be prefaced by \ODBCManager\, as shown in "Format" above.