ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Source>.ViewToFile (Function)
In french: <Source>.VueVersFichier
HFSQL ClassicAvailable only with this kind of connection
Saves the modifications performed in an HFSQL view (by <Source>.Modify, <Source>.Delete or <Source>.Cross) in the corresponding data file.
Note This operation can only be performed if the view has been created with the constant hVueBlock constant (i.e. the records imported into the view have been locked in the data file). After the call to <Source>.ViewToFile, the records are unlocked in the view source file.
Example
// Saves the modifications of Customer34 view
// into Customer file
Customer34.ViewToFile()
WINDEVWindowsHFSQL Classic
// Test du compte-rendu de la fonction HVueVersFichier
IF Client13.VueVersFichier() <> True THEN
	Error("Impossible d'enregistrer les modifications effectuées sur la vue")
END
Syntax
<Result> = <Source>.ViewToFile()
<Result>: Boolean
  • True if the view was transferred into the data file,
  • False otherwise. HError returns more details about the problem.
<Source>: Source type
Name of view used.
Remarks
If an error occurs when updating the data file, HError is used to identify the records that caused the problem. Simply loop through the view again and run HError on each record in the view.
Component: wd300hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/04/2024

Send a report | Local help