throwNrfEofExceptions
throwNrfEofExceptions 특성이 YES로
설정되면 소프트 오류(일반적으로 "레코드를 찾을 수 없음" 또는 "파일
끝")로 인해 예외 처리(throw)를 할 예외가 발생하며 사용자가 예외를 처리할 수
있도록 합니다. 특성이 NO(기본값)로 설정된 경우에는 예외가 처리되지
않지만 코드가 다음과 같이 응답할 수 있습니다.
- 위치 옵션이 있거나 없는 get 문이 레코드에 데이터를
검색하는 경우 is 또는 not 연산자를 사용하여 소프트 오류가
있는지 테스트하십시오. 다음은 개략적인 예제입니다.
// after a get statement, test for no record found get myRecord01; if ( myRecord01 is noRecordFound ) // respond end // in relation to a get statement with a next option, // test for end of file get next myRecord02; while ( myRecord02 not endOfFile ) // process the record get next myRecord02; end - SQL SELECT 문 뒤에 sysVar.sqldata.sqlcode 필드의 값을 확인하십시오.
if ( sysVar.sqldata.sqlcode == 100 ) // respond end
자세한 정보는 "예외 핸들링"을 참조하십시오.