ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
  • Changing the owner of a data file
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
HModifyFileProperty (Function)
In french: HModifiePropriétéFichier
HFSQL Client/ServerAvailable only with this kind of connection
Modifies the properties of an HFSQL data file located on a server.
Remark: To find out the properties of an HFSQL data file, use HInfoFileProperty.
Example
ResModif is boolean
ResModif = HModifyFileProperty("MyConnection", ...
hOwner, "Vince","MyDatabase","Customer.fic")
IF ResModif = True THEN
Info("Modification performed")
END
Syntax
<Result> = HModifyFileProperty(<Connection> , <Property to modify> , <New value> , <Database> , <Data file>)
<Result>: Boolean
  • True if the properties have been modified,
  • False otherwise. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable
Connection for which the value of a property must be modified. This connection corresponds to:
<Property to modify>: Integer constant
Property of the data file that must be modified:
hNotesDescription of the data file or any other information associated with the data file.
If this constant is used, <New value> is a character string containing the text of the note.
hOwnerOwner of data file.
If this constant is used, <New value> is a character string containing the name of the owner.
<New value>: Character string
New value for the property.
<Database>: Character string
Name of the database containing the data file for which the properties must be modified.
If this parameter corresponds to an empty string (""), the database defined in the connection will be used.
A WLanguage error occurs if no database is defined in the connection.
<Data file>: Character string
Name of the data file for which the properties must be modified. The file extension must be specified.
Remarks

Changing the owner of a data file

  • The user specified as new owner must be a user found on the server. A WLanguage error occurs if the user does not exist.
  • To modify the owner, the user who performs the modification must:
    • be a "Super user".
    • have the rights to change the owner of the data file (rights corresponding to the hRightsChangeOwner constant). To determine if the user has the appropriate rights, use HInfoFileProperty.
Component: wd290hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help