ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL 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
<Source>.CancelSeek (Function)
In french: <Source>.AnnuleRecherche
ODBCNot available with this kind of connection
Cancels the current search criterion. The browse of the data file can continue from the current record, without using any search criterion. The browsed records will not necessarily correspond to the search condition.
Remark: The current record was selected by the search functions (<Source>.ReadSeekFirst, <Source>.ReadSeekLast, ...).
Example
// Find the customers from the customer named "Moore"
Customer.ReadSeekFirst(Name, "Moore")
IF Customer.Found() = True THEN
// Element found: cancel the search
Customer.CancelSeek(Name)
IF ErrorOccurred = True THEN
Error(HErrorInfo())
RETURN
END
WHILE Customer.Out() = False
 // Process
 ...
 // Read the next one without using the search criterion
 Customer.ReadNext(Name)
 END
END
Syntax
<Result> = <Source>.CancelSeek([<Item>])
<Result>: Boolean
  • True if the operation was performed,
  • False if a problem occurs. HError is used to identify the error.
<Source>: Type corresponding to the specified source
Name of the source on which the search criterion must be canceled. This name can correspond to:
  • a data file (defined in the analysis).
  • a view,
  • a query.
<Item>: Optional character string
Name of the file item for which the search criterion must be canceled.
If this name is not specified, <Source>.CancelSeek handles the last item used in the data file.
Component: wd290hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/06/2023

Send a report | Local help