ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Diagram Editor functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Searches for shapes containing a specific text in a diagram.
Example
Mondiag is Diagram <- EDIAG_SansNom1

tabIndice is array of int
tabIndice = DiagramSearch(EDIAG_SansNom1, "Exemple")
FOR EACH i OF tabIndice
	Trace(Mondiag[i].Text.Caption)
END
Syntax
<Result> = DiagramSearch(<Diagram> , <Searched text> [, <Search options>])
<Result>: Array of integers
Array of integers corresponding to the indexes of the shapes that contain the specified text.
<Diagram>: Name of the control or Diagram variable
Diagram to be used. This document corresponds to:
  • the name of a Diagram Editor control.
  • a variable of type Diagram.
<Searched text>: Character string
Text to find in the diagram.
<Search options>: Optional Integer constant
Indicates the search options:
IgnoreCaseCase and accent insensitive search (ignores uppercase/lowercase differences)
WholeWordSearches for a whole word (enclosed in punctuation characters or spaces)

By default, no option is selected: the search is case sensitive and is performed on incomplete words..
Remarks
  • If a text is found several times in a shape, the index of the shape is returned only once.
  • Shapes are sorted by order on the X-axis, then on the Y-axis.
  • The text is searched only on the "Text.caption" property of the Diagram variable.
Component: wd300mdl.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help