PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

New WINDEV 26 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The FileFilter property is used to find out and change the filter used to display files:
  • when using assisted input in an edit control or table column with the "Assisted file path input" option (in the "General" tab of the description window),
  • in the file picker displayed when the user selects the "Browse..." option in the context menu of an edit control, table column or Combo Box control.
Example
// Filter on log files
EDT_LogFileInput.FileFilter = "Log files (*.log)" + TAB + "*.log"
Syntax

Identifying the filter used to display files Hide the details

<Filter value> = <Control used>.FileFilter
<Filter value>: Character string
Current value of the filter on the displayed files:
  • when using assisted input.
  • in the file picker displayed when the user selects the "Browse..." option in the context menu of a control.
This value can correspond to:
  • a character string with the following format:
    <File type> + TAB + <List of extensions> [ + CR + ...
    <File type 2> + TAB + <List of extensions 2>]

    Where:
    • <File type>: character string describing the type of file ("BMP (*.BMP;*.RLE)" for example).
    • <List of extensions>: extensions corresponding to the described type ("*.BMP;*.RLE" for example).
    For example:
    "BMP (*.BMP;*.RLE)"+TAB+"*.BMP;*.RLE"+CR+"Icon (*.ICO)"+TAB+"*.ICO"+CR+"Other"+TAB+"*.GIF;*.TIF;*.JPG"
  • an empty string ("") if no filter is used.
<Control used>: Control name
Name of control to use:
  • Edit control.
  • Column of Table control.
  • Combo Box control.

Changing the filter used to display files Hide the details

<Control used>.FileFilter = <New Filter>
<Control used>: Control name
Name of control to use:
  • Edit control.
  • Column of Table control.
  • Combo Box control.
<New Filter>: Character string
Current value of the filter on the displayed files:
  • when using assisted input.
  • in the file picker displayed when the user selects the "Browse..." option in the context menu of a control.
This value can correspond to:
  • a character string with the following format:
    <File type> + TAB + <List of extensions> [ + CR + ...
    <File type 2> + TAB + <List of extensions 2>]

    Where:
    • <File type>: character string describing the type of file ("BMP (*.BMP;*.RLE)" for example).
    • <List of extensions>: extensions corresponding to the described type ("*.BMP;*.RLE" for example).
    For example:
    "BMP (*.BMP;*.RLE)"+TAB+"*.BMP;*.RLE"+CR+"Icon (*.ICO)"+TAB+"*.ICO"+CR+"Other"+TAB+"*.GIF;*.TIF;*.JPG"
  • the result of fGraphicFilter or zipFilter.
  • an empty string ("") to cancel the current filter and not use any filter.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment