ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Source>.RestorePosition (Function)
In french: <Source>.RetourPosition
ODBCNot available with this kind of connection
Restores the previously saved context of a table (function <Source>.SavePosition): record in progress, filter, read pointers.
<Source>.RestorePosition is used to restore:
  • the different pointers in the index,
  • the current filter.
This function can be used with the tables, HFSQL views or queries.
Example
// Find a record
Customer.ReadSeekFirst(Name, Name)
WHILE Customer.Found() = True
	// Saves the current context
	nPos = Customer.SavePosition(Name)
	// Check a customer with another name
	Customer.ReadSeek(Name, Name2)
	IF Customer.Found() = True THEN Counter = Counter + 1
	// Restores the context
	HRestorePosition(nPos)
	Customer.ReadNext(Name)
END
Syntax
<Result> = <Source>.RestorePosition()
<Result>: Boolean
  • True if the specified position was restored,
  • False otherwise. HError returns more details about the problem.
<Source>: Type corresponding to the specified source
Name of the table whose context is to be restored.
Remarks

Miscellaneous

Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help