ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Example 1: Modifying a record found in Customer file
  • Example 2: Modifying a new data file
Example 1: Modifying a record found in Customer file
WINDEVJava The customer form is displayed on the screen. ScreenToFile is used to load the values entered in memory. The current record is modified.
// Modify the current record in a "Customer" file
ScreenToFile()
IF HModify(Customer) = False THEN
Error("Unable to modify the customer")
END
Example 2: Modifying a new data file
WINDEVWEBDEV - Server codeJavaPHPAjaxHFSQL ClassicHFSQL Client/ServerStored proceduresHyper File 5.5OLE DBNative Connectors (Native Accesses) A "Customer" file is created. The following code is used to modify the 5th record of this file. In this case, 4 deleted records are added at the beginning of the file.
// Create the "Customer" file
HCréation(Customer)
IF HModify(Customer, 5) = False THEN
Error("Unable to modify the customer")
END
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/14/2024

Send a report | Local help