| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > FileManager > FileManager Methods >====== BindFields (bind fields when file is opened) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[addkey set the file s keys .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[cancelautoinc undo primeautoinc .htm|{{btn_next_n.gif|Next page}}]] | | || **BindFields, VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} The **BindFields **method BINDs the fields when the file is opened. See the //Language Reference// for more information on [[bind declare runtime expression string variable .htm|BIND]]. **Implementation:** The Open method calls the BindFields method. **Example:** **PROGRAM** ** INCLUDE('ABFILE.INC')            !declare FileManager class** ** MAP                              !program map** ** END** **GlobalErrors ErrorClass           !declare GlobalErrors object** **Access:Client CLASS(FileManager)  !derive Access:Client object** **BindFields     PROCEDURE,VIRTUAL  !prep fields for dynamic use** **              END** **Client    FILE,DRIVER('TOPSPEED'),PRE(CLI),CREATE,BINDABLE,THREAD** **IDKey      KEY(CLI:ID),NOCASE,OPT,PRIMARY** **Record     RECORD,PRE()** **ID          LONG** **Name        STRING(20)** **StateCode   STRING(2)** **           END** **          END** ** CODE** ** !program code** **Access:Client.BindFields PROCEDURE      !called by the base class Open method** ** CODE** ** BIND(CLI:RECORD)                       !bind all fields for dynamic use** **See Also:     **[[open open the file .htm|Open]]