Exemple

//------------------------------------------------------------------- // ECLBase::ConvertPos // // Display row/column coordinate of a given point. //------------------------------------------------------------------- void Sample6() { ECLPS *pPS; ULONG NumRows, NumCols, Row, Col; try { pPS = new ECLPS('A'); pPS->GetSize(&NumRows, &NumCols); // Get height and width of PS // Get row/column coordinate of position 81 ECLBase::ConvertPos(81, &Row, &Col, NumCols); printf("Position 81 is row %lu, column %lu \n", Row, Col); delete pPS; } catch (ECLErr Err) { printf("ECL Error: %s\n", Err.GetMsgText()); } } // end sample