Skip to content

Package Filename Extensions

By convention, DataFlex uses special filename extensions for package files to indicate the nature of their contents, as listed below:

Package Contents

Package Contents Filename Extension
Classes .pkg
Data-dictionary Subclasses .dd
Data-Entry Views .vw
Lookup List Views .sl
Report Views .rv
Business Process Objects .bp
Web Objects .wo

Note: Programs—collections of views, usually with a menu bar—typically use the .src filename extension.

The Studio generates source code files using these extensions. You can follow these conventions, add your own set of extensions to this list, or use .pkg for all packages. The use command will work with any file extension if the file extension is included:

use Dfallent.pkg
use Confirm.pkg
use Vendor.dd
use CustEnt.vw

The use command allows you to omit the file extension if and only if the package has a file extension of .pkg. However, you are encouraged to always provide the extension.

Next Topic

Class Packages