# FileBrowser_Create

int FileBrowser_Create (int panel, int control, char *startPath);

## Purpose

Creates a new file browser from an existing tree control.

## Parameters

Input
Name | Type | Description
panel | integer | The handle of the panel for the file browser.
control | integer | The ID of a tree control to convert into a file browser. This control must exist on the panel identified by the panel parameter.
startPath | char * | The path that the file browser uses as its root. Refer to the documentation for ATTR_START_PATH in the attribute parameter of the FileBrowser_SetAttribute function panel for the supported formats of the string.

## Return Value

Name | Type | Description
status | integer | Return value that indicates whether the function was successful. A negative number indicates that an error occurred. Call the GetGeneralErrorString toolbox function to get a descriptive error message.