以下の例は、カーソルが数字ロケーションにある と OIA が示すかどうかを判別する方法を示します。

//-------------------------------------------------------------------
// ECLOIA::IsNumeric
//
// Determine status of connection 'A' OIA indicator
//-------------------------------------------------------------------
void Sample52() {
 
ECLOIA OIA('A');   // OIA object for connection A
 
if (OIA.IsNumeric())
  printf("Numeric.\n");
else
  printf("Not Numeric.\n");
 
} // end sample