|
|
|
|
<Source>.RestorePosition (Function) In french: <Source>.RetourPosition
Not available with this kind of connection
Restores the previously saved context of a data file ( <Source>.SavePosition): current record, filter, pointers. <Source>.RestorePosition is used to restore: - the different pointers in the index,
- the current filter.
This function can be used with the data files, HFSQL views or queries.
// 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 data file whose context is to be restored. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|