ourHandler( exObj:  Exception ) : Integer ;

constants 	StringTooLong = 1035 ;

begin									// Is this the exception we are interested in?
	if exObj.errorCode = StringTooLong then
												// The only one so far. (We could expand this
												// into an elseif statement to check for many.)
		app.msgBox ( "The ourHandler Exception handler" & CrLf &
						"has intercepted an error 1035" & CrLf &
						exObj.text & CrLf & CrLf &
						"When you press OK this application will be terminated.",
						"Exception Error!", MsgBox_OK_Only ) ;
		abortTransaction ;	// End the beginTransaction state
		terminate ;					//  Shut down the whole application!!
	else									// 'ourHandler' only handles error 1035,
		return Ex_Pass_Back ;	// so it passes all other exceptions on to other handlers
	endif ;								// or to the default handler.
end ;

=======================================================================

Fragments to drive the Progress bar.
Insert into each Load<X>OffFIle method

						fil.close; fil.open;
						create fp;												// create the progressbar form
						fp.top := 400; fp.left := 550;			// position it and set it
						fp.prBar.partsInJob 	:= recCounter;  fp.prBar.partsDone	:= 0;  
						fp.laFileName.caption := "\" & fil.fileName[fil.fileName.reversePos("\") + 1:end];
						fp.show;
			
					// (b) Loop through the file to process them==========================
		recCounter := 0;
		while not fil.endOfFile do				// Until the file ends do ...
			recCounter := recCounter +1;
			st	:= fil.readLine ;						// Read line #1: BookSeller's Address
			st2 := fil.readLine ;						// Read line #2: BookSeller's data)
			fp.prBar.partsDone := 	fp.prBar.partsDone +2;
			app.doWindowEvents(50);						// Deliberate slow down for demo
					// (c) Pick the facts (tokens) out of the records using nam :=  st.scanUntil("|", indx) 


=====================================================================