Navigation: ABC Library Reference > FileManager > FileManager Methods >====== BindFields (bind fields when file is opened) ====== | |
BindFields, VIRTUAL
The BindFields method BINDs the fields when the file is opened. See the Language Reference for more information on 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