FileBrowser_Create
- Updated2023-02-21
- 1 minute(s) read
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 | int | The handle of the panel for the file browser. |
| control | int | 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 | int | 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. |
Additional Information
Library: File Browser
Include file: custctrl\FileBrowser.h
LabWindows/CVI compatibility: LabWindows/CVI 7.0 and later