PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
HViewToFile (Function)
In French: HVueVersFichier
HFSQLAvailable only with this kind of connection
Warning
From version 20, the SQL views and the materialized views are available.
The views handled by this function correspond to the former mechanism of views. They do not correspond to SQL views or to materialized views.
Saves the modifications performed in a HFSQL view (by HModify, HDelete or HCross) in the corresponding data file.
Note: This operation can be performed only if the view was created with the hViewLocking constant (which means that the records imported into the view have been locked in the data file). After the call to HViewToFile, the records are unlocked in the source file of view.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 22 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
// Saves the modifications of CUSTOMER34 view
// in CUSTOMER file
HViewToFile(CUSTOMER34)
WINDEVWEBDEV - Server codeWindowsWindows MobileHFSQL
// Check the status report of HViewToFile
IF HViewToFile(CUSTOMER13) <> True THEN
Error("Unable to save the modifications performed on the view")
END
Syntax
<Result> = HViewToFile(<View Name>)
<Result>: Boolean
  • True if the view was transferred into the data file,
  • False otherwise. HError returns more details about the problem.
<View Name>: Character string (with or without quotes)
Name of view used. If this name is not specified, HViewToFile handles the last view used by the last function for HFSQL management (starting with the letter H).
Remarks
If an error occurs when updating the data file, HError is used to identify the records that caused the problem. All you have to do is browse the view again and check HError on each record found in the view.
Components
WINDEVWEBDEV - Server code wd230hf.dll
Windows Mobile wp230hf.dll
Linux wd230hf.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment