DataEase » Support » Knowledge Base » DataEase 7.2 Articles » How to browse for files on your computer

First, create the following CDF:

Function Name: GetFileName
CDF library name: GetFileN.DLL
Return type: String
Create 3 Parameters:
1- Name: filtstr Type: String
2- Name: delim Type: String
3- Name: initdir Type: String

You should then close and re-open your DataEase application (to register the CDFs).

Create field “BrowseFile” with data-type text and length 100; add a button with caption “Browse”. Right-click the button and select OML from the pop-up menu and type the following:

BrowseFile.Value := GetFileName(“”,”" ,”c:\” ) .