Set current data file

20% Command group 20% Flag affected 20% Reversible 20% Execute on client 20% Platform(s)
Data files NO YES NO All

Syntax

Set current data file {internal-name}

Description

This command sets the specified data file the "current" data file. If your methods refer to file class names without specifying the data file, it is essential to make the appropriate data file current before setting a main file.

Example

Open data file {Archive.df1/DataFileA}
Open data file (Do not close other dat) {myData.df1/DataFileB}
Set current data file {DataFileA}
Set main file {fCustomers}
# fCustomers.Field1 now refers to DataFileA.fCustomers.Field1