Example

The following is an example of using the GetSize method.

//-------------------------------------------------------------------
// ECLPS::GetSize
//
// Display dimensions of connection 'A'
//-------------------------------------------------------------------
void Sample59() {
 
ECLPS PS('A');       // PS object for connection A
ULONG Rows, Cols, Len;
 
PS.GetSize(&Rows, &Cols);   // Get num of rows and cols
// Could also write as:
Rows = PS.GetSizeRows();    // Redundant
Cols = PS.GetSizeCols();    // Redundant
 
Len = PS.GetSize();         // Get total size
 
printf("Connection A has %lu rows and %lu columns (%lu total length)\n",
       Rows, Cols, Len);
 
} // end sample