Skip to content

DFBinPath - cApplication

Returns the Bin folder of the current DataFlex version

Type: Function
Return Data Type: String

Syntax

Function DFBinPath Returns String

Call Example

Get DFBinPath to StringVariable

Description

Returns the Bin folder of the current DataFlex version containing the runtime files used by the application. That means that when an application is compiled for 32 bits, Bin will be returned; when it is compiled for 64 bits, Bin64 will be returned.

Since DataFlex 20.0, DataFlex supports 64-bit applications and has two bin folders: Bin and Bin64. They are both sub-folders of the DataFlex main folder, i.e. the folder where DataFlex was installed -- by default, that folder is "C:\Program Files\DataFlex [version]," where [version] is the DataFlex version installed.

The 32-bit DataFlex runtime files are located in the Bin folder and the 64-bit files are installed to the Bin64 folder.

When using DataFlex 26.0, for example, and compiling an application for 64 bits, DFBinPath will return "C:\Program Files\DataFlex 26.0\Bin64" when running that application, while the same application compiled for 32 bits will result in DFBinPath returning "C:\Program Files\DataFlex 26.0\Bin" when the application is run.

Return Value

Bin folder