Trail: PROIV 
 Documentation > Developer 
 > PROIV 
 Developer > Developing 
 Functions > Events 
 and Logic > FLD
	
	
		
			| 
       | 
			
       | 
		
		
			| 
    Purpose  | 
			
    FLD is used in field logic and causes processing 
			 to continue at a specified destination field.  There 
			 are two versions of the FLD command one for Screen functions 
			 and one for reports. 
			   | 
		
		
			| 
    Syntax  | 
			
    When used in Screen logic 
			 
			FLD (field){,skip{,backtab}}…) 
			  
			 
			 
			When used in Report logic 
			 
			FLD (field,{option}) 
			   | 
		
		
			| 
    Operation  | 
			
    When used in Screen logic 
			 
			field is the 
			 destination field number or the Tag Name of the field.  If 
			 less than 1 FLD is treated as a null operation.  If it 
			 is greater than the number of fields in the function it is 
			 treated as though the last field of the function has been 
			 processed. 
			 
			Skip is any valid 
			 numeric constant variable or expression.  Non-zero indicates 
			 skipped fields of a cycle are to be displayed.  Zero 
			 indicates skipped fields are not to be 'displayed.   
			 
			Backtab is any valid 
			 numeric constant variable or expression.  The value tells 
			 the system how to respond if a back tab is entered in the 
			 destination field of an cycle.  Non-zero means return 
			 the cursor to the first input field prior to the first skipped 
			 field.  Zero means return the cursor to the first input 
			 field prior to the destination field. 
			 
			 
			When used in Report logic: 
			 
			field is the 
			 destination field number (1-999) or the Tag Name of the field. 
			  If less than 1 FLD is treated as a null operation.  If 
			 it is greater than the number of fields in the function it 
			 is treated as though the last field of the function has been 
			 processed. 
			 
			Option = 0 (default) 
			 to process any line feeds associated with this field, or #0 
			 to skip any line feed processing associated with this field. 
			   | 
		
		
			| 
    Remarks  | 
			
    Fields are normally processed sequentially.  FLD 
			 is used to skip fields in the current cycle or to alter the 
			 standard processing flow.    
			 
			No Logic is executed for the fields skipped. 
			 
			A field number is local to the function in which it is defined; 
			 so field 1 in function CUST and field 1 in function INV are 
			 separate entities.  It is not possible to skip from 
			 a field in one function to a field in another function. 
			 
			When FLD is executed, the remaining statements within a logic 
			 routine are processed before control is passed to the specified 
			 field number.  If multiple field statements are 
			 executed within a logic routine, control is passed to the 
			 field number specified in the last FLD statement executed. 
			 
			In Screen functions, the FLD statement causes PROIV to jump 
			 to the specified field in the current cycle. 
			 
			In Report functions, the FLD statement causes a jump to the 
			 specified field in the current cycle.  The field 
			 containing FLD in its Field logic is printed in the report 
			 but skipped fields are not. 
			   | 
		
	
	
	 
 
	
	
	
		  | 
		
   Avoid 
		 skipping to fields outside the current cycle.  | 
	
 
  
 Comment 
 on this topic
 Topic ID: 520057