ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Diagram editor functions
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
Searches for shapes containing a specific text in a diagram.
Example
MyDiag is Diagram <- DIAGEDT_NoName1

arrIndex is array of int
arrIndex = DiagramSearch(DIAGEDT_NoName1, "Example")
FOR EACH i OF arrIndex
Trace(MyDiag[i].Text.Caption)
END
Syntax
<Result> = DiagramSearch(<Diagram> , <Searched text> [, <Search options>])
<Result>: Array of integers
Array of integers corresponding to the indices 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 (between punctuation characters or spaces)

No option is selected by default: the search is sensitive to the case and it 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: wd290mdl.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/11/2023

Send a report | Local help