PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Checks whether the current record corresponds to the current filter or to the current search.
HFound returns True if the current record exists and if one of the following conditions is fulfilled:
  • the file browse is filtered and the current record corresponds to the filter conditions,
  • the file browse was started by a search and the current record corresponds to the sought value,
  • the file browse is neither filtered nor started by a search.
When an operation triggers the exit from a filter or data file (which means when HOut returns True), HFound returns False.
Note: HFound corresponds to the H.Found variable.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 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.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 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.
Example
HReadSeekFirst(CUSTOMER, NAME, "MOORE")
IF HFound() = True THEN
        Info("Record found")
ELSE
        Error("No record found")
END
Syntax
<Result> = HFound([<File name>])
<Result>: Boolean
  • True if the current record corresponds to the filter or to the search,
  • False otherwise. HError returns more details about the problem.
<File name>: Optional character string (with or without quotes)
Name of data file, view or query used. If this name is not specified, HFound handles the last data file (view or query) used by the last function for HFSQL management (starting with the letter H).
WINDEV You also have the ability to specify a view identifier (view created by HCreateView_55).
Component : wd240hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Vamos a cambiar el registro

//Aula 1153 WinDev Curso ErpAmarildo 11 - Tabela Codigo de Alteração

//Nessa aula de hoje
//vamos fazer a alteração do registro.

//En esta clase de hoy
//Vamos a cambiar el registro.

//In this class today
//Let's do the registry change.

IF TableSelect(TABLE_QRY_RELACAO_EMPRESAS)=-1 THEN RETURN
_indice is int=TableSelect(TABLE_QRY_RELACAO_EMPRESAS)
HReadSeekFirst(empresa,empresaID,TABLE_QRY_RELACAO_EMPRESAS.COL_EmpresaID)
IF HFound(empresa) THEN
Open(WIN_Form_empresa)
END
TableDisplay(TABLE_QRY_RELACAO_EMPRESAS,taReExecuteQuery)
TableSelectPlus(TABLE_QRY_RELACAO_EMPRESAS,_indice)
De matos
18 May 2017
Example
PROCEDURE LoginiOS()


Registros is boolean


SqlExecute is string = [
select * from TabelaLogin
]


SqlQuery is Data Source


ok is boolean = HExecuteSQLQuery(SqlQuery,hQueryDefault,SqlExecute)


IF ok = True THEN


FOR EACH SqlQuery


Registros = HFound(SqlQuery)


IF Registros = True THEN


EDT_Cod = SqlQuery.TabelaEmail


END


END


END
adrianoboller
04 Feb. 2016