AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Hoja de cálculo
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Seeks a value in the cells of a Spreadsheet control found in a window.
Ejemplo
sCell is string = TBLR_SansNom1.Cherche("%NOMCLIENT%")
// Traite le résultat de la recherche
IF sCell <> "" THEN
	 // Remplace %NOMCLIENT% par Durant
	 TBLR_SansNom1[sCell] = "Durant"
END
// Parcours de toutes les cellules avec "TVA"
sCell is string = TBLR_SansNom1.Cherche("TVA")
WHILE  sCell <> ""
	// Remplace TVA par TBLR_SansNom1[sCell] = 20.6
	Trace(sCell)
	// Cellule suivante
	sCell = TBLR_SansNom1.Cherche("TVA", sCell)
END
Sintaxis
<Result> = <Spreadsheet control>.Seek(<Search value> [, <Start> [, <Options>]])
<Result>: Cadena de caracteres
  • Name of cell found ("A1" for example). If several cells are found, <Result> contains the name of first cell found.
  • "" (empty string) if no cell is found.
<Spreadsheet control>: Nombre del control
Name of the Spreadsheet control to be used.
<Search value>: Tipo de valor buscado
Value to find in the cells of Spreadsheet control. This value can correspond to a number or to a character string.
<Start>: Cadena de caracteres opcional
Name of the from which the search will be performed. This cell is excluded from the research.
Note: this parameter scrolls through all cells containing a.
If this parameter is not specified or is an empty string (""), the search starts at cell "A1".
<Options>: Constante opcional de tipo Integer
Search options:
psheetSearchWithCaseCase-sensitive search.
psheetSearchContain"Contains" search.
psheetSearchInFormulaSearch only in formulas.
psheetSearchExactExact-match search.
psheetSearchCurrentWorksheetSearch in the current worksheet.
psheetSearchNoCaseCase-insensitive search.
psheetSearchAnyWorksheetSearch in all sheets of the workbook.

By default, the search is based on the following combination of constants: tblrRechAvecCasse + tblrRechFeuilleEnCours + tblrRechExact
Observaciones
  • The search is performed in the following order: A1, B1, C1, ..., A2, B2, C2, ...
  • This function can only be used on a Spreadsheet control found in a window.
Componente: wd300obj.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

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local