PC SOFT

WINDEV的在线文档

  • Overview
  • How to proceed?
  • Find-Replace pane
  • Finding text
  • Finding text: the different search options
  • Sought text: using wildcard characters :?, *, - (wildcard)
  • Replacing the sought text
  • Search result
  • Search result
  • Filtering the results displayed (text search only)
  • Storing the results of a search
  • History of searches
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
The ability to perform a search in the editors is an important feature contributing to efficiency. WinDev, WebDev and WinDev Mobile propose a very powerful search module. This module is used to find different types of elements in one or more projects.

This help page presents the search in a project available from version 18. To see the help about the search in the previous versions, see Find - Replace.

How to proceed?

Find-Replace pane

The search is performed from the "Find - Replace" pane.

To display this pane:

  • press [CTRL + F] from any editor.
  • on the "首页" pane, in the "环境" group, expand "窗格" and select "Find - Replace".

The search can be performed on:

  • text: words, expressions or section of word to find. The text can be typed in the search area.
  • a regular expression
  • a conditional target-code: in this case, all you have to do is select the type of target-code to find.
  • the last modifications: all you have to do is specify the contributors who performed the modification and the search period.
  • a help about a command or a feature: all you have to do so is specify the word to find.
Shortcuts used for search:
  • To perform a search on the selected text: [CTRL + F]
  • To force a search on the entire project on the selected text: [CTRL + SHIFT + F]
  • To force a search in the current element on the selected text: [CTRL + ALT + F]

Finding text

Finding text: the different search options

The "Find - Replace" pane proposes several options to find a text:

Search options:

  • Choosing the type of element to find (1): In this case, the search is performed on a text.
  • In (2):
    The sought text can correspond to a code, to the name of an element or to a word in the caption of a control.
    Specify the type of element in which the search will be performed:
    • the code: the search is performed in the source code only. This type of search is used to find a variable, a function, a comment, or any word or expression found in a source code.
      19版本和更高版本
      The search in the source code is also performed in the automatic procedures, the preset actions and the processes with error and/or automatic exception.
      19新版本
      The search in the source code is also performed in the automatic procedures, the preset actions and the processes with error and/or automatic exception.
      The search in the source code is also performed in the automatic procedures, the preset actions and the processes with error and/or automatic exception.
    • the GUI: the search is performed in the GUI (interface) only. This type of search is used to find a window name, a control name, an image name, or any word or expression found in the interface of the project (window, page, report, ...).
    • the code and GUI: the search is performed both in the source code and in the GUI (interface).
  • For (3):
    This option is used to specify the target of the search, which means the elements that will be taken into account by the search.
    The target can be:
    • the current element: the window in which you are working, the code displayed, a report, ...
    • all the project elements: the search will be performed on all the elements found in the current project (windows, source code, reports, pages, ...).
    • some project elements: you can select the types of the elements on which the search will be performed (project only, reports, windows, analysis, ...).
    • several projects simultaneously (multi-project search): the search will be performed in several projects. You must specify the projects on which the search will be performed.
      • the "Directory" button is used to select the projects found in a directory or on a disk. All the WinDev, WebDev or WinDev Mobile projects found at this location will be taken into account. The search is also performed in the sub-directories of the specified locations. A UNC path can be specified.
      • the "Project" button is used to add a specific project (WinDev, WebDev or WinDev Mobile). Different types of projects can be added (a WinDev project and a WinDev Mobile project for example).
  • Of (4):
    If your project includes several configurations or internal components, you have the ability to specify whether the search will be performed in these modules. The search can be performed:
    • in all the configurations.
    • in a specific configuration.
    • in all the internal components.
    • in a specific internal component.
  • With (5):
    When searching for text, you have the ability to specify the search options for the text:
    • Ignore the case: the search ignores the case (uppercase and lowercase characters)
    • Ignore the accented characters: the search ignores the accented characters
    • Ignore the punctuation: the search ignores the punctuation characters (comma, dot, dash), ....
    • Ignore the space characters: the search will ignore the space characters found before, after or between the words.

      You also have the ability to specify the selection mode of the words:
      • Word contains: the sought expression must contain the specified expression.
      • Whole word: the sought expression exactly corresponds to the specified expression.
      • Word starts with: the sought expression starts with the specified expression.
      • Word ends with: the sought expression ends with the specified expression.
  • Advanced options (6):
    You also have the ability to apply a filter. This filter can be performed:
    • on the code: you can take into account or ignore:
      • The source code: this option corresponds to WLanguage, the functions, the properties, ....
      • The comments: this option corresponds to the comments (//)
      • The strings: this option corresponds to the static character strings, between quotes.
      • The multilingual strings: this option corresponds to the translated strings (for a multilingual project).
    • on the GUI: you can take into account or ignore:
      • The controls: this option corresponds to the controls found in the window, in the page, in the report, ...
      • The links: this option corresponds to the analysis links (integrity constraints)
      • The multilingual properties: this option corresponds to the multilingual characteristics (for a multilingual project)
      • The files and the items: this option corresponds to the files described in the analysis, to the description of each file and to the description of items.
      • The dependencies: this option corresponds to all the objects associated with the project such as the images for example.
    • on the languages: Used to select the languages in which the search will be performed for a multilingual project.

Sought text: using wildcard characters :?, *, - (wildcard)

When typing the text to find, you have the ability to use wildcard characters in order to replace any other character.
  • The "?" character is used to replace any other character at the location where it was used. Several "?" characters can be used in the same search. This wildcard character can be used at any location in the sought word.
    For example, LOUI? will be used to find LOUIS as well as LOUIX.
  • The * character is used to replace one or more characters. This wildcard character can be used at any location in the sought word.
    For example:
    • LOUI* will be used to find LOUIS as well as LOUISE, ...
    • Customer.* = is used to find all the assignments of items in the customer file.
  • The - character (minus) is used to exclude words from the search. In this case, the word must be preceded by the minus sign -.
    For example "Position -HPosition -H还原位置" is used to find all the occurrences of "Position" other than "HPosition" and "H还原位置".

Replacing the sought text

The sought text can be replaced by a new text:
  1. Perform the search for the text.
  2. Enter the replacement text in the "Replace by" area.
  3. Expand the replacement arrow (9) and select the requested option:
    • Replace all: all the occurrences of the search will be replaced.
    • Replace the selection: the replacement will be performed for the selected result lines only.

Search result

Search result

The result of the search is displayed in a list. The element found is highlighted. If the element found corresponds to a code, the coloring of the code editor is applied. This allows you to easily identify the results and to simplify the reading.

Several actions can be performed on the content of this list:

  • Apply a breakpoint on a code line of the search result (via the popup menu).
  • Print the entire content of the list or a selection (via the popup menu).
  • Display the results on several lines.
To group the occurrences of the same line, click the buttons. If the sought term appears more than once in a given code line, there is no need to display this line more than once in the result.

Filtering the results displayed (text search only)

Once the results are displayed, you have the ability to apply a filter in order to view some types of answers only. You have the ability to display answers coming from the code and/or from the GUI.

Storing the results of a search

You have the ability to store the current search in order to perform another simultaneous search on other criteria.

Then, you can switch from a search to another one in order to compare the results or to perform different actions on the project.

The number of simultaneous searches is limited to 5.

To store the current search, click the lock found in the top right corner of the search window:

History of searches

The history of previous searches can be displayed at any time, to continue to analyze the results if you have been interrupted or to restart the same search. All you have to do is expand "Find".

You also have the ability to fix a search in order to store it in the favorites and to easily find it thereafter.