ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The FileFilter property gets and sets the filter used to display files:
  • when using assisted input in an Edit control or table column with the "File path autocomplete" 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

Getting 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 the control to be used:
  • 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 the control to be used:
  • 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

Last update: 05/31/2022

Send a report | Local help