User Tools

Site Tools


bindfields_bind_fields_when_file_is_opened_.htm
Navigation:  ABC Library Reference > FileManager > FileManager Methods >====== BindFields (bind fields when file is opened) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

BindFields, VIRTUAL

blk2blue.jpg

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

bindfields_bind_fields_when_file_is_opened_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1