PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE

  • Uppercase/Lowercase characters
  • Seeking and selecting an element found in a List Box or Combo Box control
  • Search in a browsing List Box or Combo Box control: search on the stored value or on the displayed value
  • Search and selection in a List Box control
  • Miscellaneous
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
Seeks an element in a List Box control (standard list box or listview) or in a Combo Box control (including the values described by gLink).
WEBDEV - Código Navegador In this version, the values described by gLink cannot be sought.
Note: can be used on:
  • the browsing or memory List Box controls,
  • single-selection or multiselection Looper controls.
PHP Reminder: The browing List Box controls are not available in this version.
Versiones 15 y posteriores
Android This function is now available for Android applications.
Nueva funcionalidad versión 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versiones 16 y posteriores
WINDEVLinux This function is now available for WINDEV applications in Linux.
Nueva funcionalidad versión 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Versiones 17 y posteriores
iPhone/iPad This function is now available for iPhone/iPad applications.
Nueva funcionalidad versión 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versiones 18 y posteriores
Universal Windows 10 App This function is now available in Windows Store apps mode.
Nueva funcionalidad versión 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versiones 21 y posteriores
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Nueva funcionalidad versión 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Ejemplo
Sintaxis
<Result> = <List Box control>.Buscar(<Sought element> [, <Type of search> [, <Start of search>]])
<Result>: Integer
  • Subscript of element found.
  • -1 if no element corresponds to the search.
The element found is not selected. To select the element found, use <Caja de lista>.SelectPlus.
WINDEV In a browsing List Box control, the element found is displayed if it is not visible.
<List Box control>: Control name
Name of List Box (or Combo Box) control to use.
<Sought element>: Character string (with quotes)
Element to find in the specified List Box (or Combo Box) control.
<Type of search>: Optional boolean
  • True (default value) for an exact-match search,
  • False for a generic search.
PHP This parameter is not available. An exact-match search is performed by default.
<Start of search>: Optional integer
Subscript from which the search will start in the List Box or Combo Box control.
If this parameter is not specified, the search is performed in the entire control. This parameter is ignored for the memory List Boxes.
PHP This parameter is not available. The search is performed in the entire control by default.
Observaciones
WINDEVWEBDEV - Código ServidorReportes y ConsultasAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppJavaPHPAjaxCódigo de Usuario (UMC)

Uppercase/Lowercase characters

  • If the control is a memory List Box control, the search ignores the uppercase and lowercase characters.
  • If the control is a browsing List Box control, the search performed on the "Key" items takes into account the "Search options" defined in the data model editor ("General" tab of item description).
PHP The search is case sensitive.
PHP The browsing List controls are not available.
WINDEVWEBDEV - Código ServidorReportes y ConsultasAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppAjaxCódigo de Usuario (UMC)

Seeking and selecting an element found in a List Box or Combo Box control

To seek and/or select an element found in a browsing List Box or Combo Box control, you also have the ability to use the following syntax:
LIST_OrderList..StoredItem = "CustomerID"
// Find and select the element whose CustomerID is "135"
LIST_OrderList = 135
// If the element sought is not found, LIST_OrderList will be set to -1
AndroidJava The sought element is selected.
WINDEVWEBDEV - Código ServidorReportes y ConsultasiPhone/iPadWindows MobileUniversal Windows 10 AppAjaxCódigo de Usuario (UMC)

Search in a browsing List Box or Combo Box control: search on the stored value or on the displayed value

Case 1: The List Box or Combo Box control is filled by a data file ("Direct access" option):
The search is performed according to the value of gLinkActivate:
  • If gLinkActivate(Control, True) (by default): performs the search on the "search item" declared in the "Content" tab of control description.
  • If gLinkActivate(Control, False): performs the search on the "displayed item" declared in the "Content" tab of control description.
Case 2: The List Box or Combo Box control is filled by a data file ("Loaded in memory" option):
performs the search on the "displayed item" declared in the "Content" tab of control description.
WINDEVWEBDEV - Código ServidorReportes y ConsultasAndroidiPhone/iPadWindows MobileUniversal Windows 10 AppJavaAjaxCódigo de Usuario (UMC)

Search and selection in a List Box control

If the options used to fill the List Box control are defined in the description window of the control ("Content" tab), the following syntax can be used to seek and select an element in a List Box control:
ListName = SoughtElement
The options used to fill the List Box control are:
  • Browsed file
  • Displayed item
  • Browse item
WINDEVWEBDEV - Código ServidorWEBDEV - Código NavegadorReportes y ConsultasWindows MobileJavaAjaxCódigo de Usuario (UMC)

Miscellaneous

  • To perform a search in a Table control or in a Combo Box control with table, use TableSeek.
  • can be used on a "Combo Box" table column.
Componente : wd250obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario