$FUNCNAME$
  FIELDPUT()
$CATEGORY$
  DATABASE
$SUMMARY$
   Set the value of a field variable using the ordinal position of the field in
$LANG_RU$
      ,     .
$SYNTAX$
     FIELDPUT(<nField>, <expAssign>) --> ValueAssigned
$LANG_RU$
     FIELDPUT(< >,<>)  -->  
$ARGUMENTS$
     <nField> is the ordinal position of the field in the current
     database file.

     <expAssign> is the value to assign to the given field.  The data
     type of this expression must match the data type of the designated field
     variable.
$LANG_RU$
     < > -         
      

     <> - ,   .   
           .
$RETURNS$
     FIELDPUT() returns the value assigned to the designated field.  If
     <nField> does not correspond to the position of any field in the current
     database file, FIELDPUT() returns NIL.
$LANG_RU$
     FIELDPUT()  ,   . 
     < >    -    
     , FIELDPUT()  NIL.
$DESCRIPTION$
     FIELDPUT() is a database function that assigns <expAssign> to the field
     at ordinal position <nField> in the current work area.  This function
     allows you to set the value of a field using its position within the
     database file structure rather than its field name.  Within generic
     database service functions this allows, among other things, the setting
     of field values without use of the macro operator.
$LANG_RU$
     FIELDPUT() -   ,   <>
         < >     
     .   ,    , , 
      ,     
     .
$EXAMPLES$
       This example compares FIELDPUT() to functionally equivalent
	code that uses the macro operator to set the value of a field:

	// Using macro operator
	FName := FIELD(nField)           // Get field name
	FIELD->&amp;FName := FVal            // Set field value
	// Using FIELDPUT()
	FIELDPUT(nField, FVal)           // Set field value
$LANG_RU$
           FIELDPUT() 
         ,  
           :

       //   
       FName := FIELD(nField)      //   
       FIELD->&amp;FName := FVal       //   

       //  FIELDPUT()
       FIELDPUT(nField, FVal)      //   
$SEEALSO$
  FIELDGET()
$END$
