PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HModifyFileProperty (Function)
In French: HModifiePropriétéFichier
HFSQL Client/ServerAvailable only with this kind of connection
Modifies the properties of a HFSQL data file found on a server.
Note: To find out the properties of a HFSQL data file, use HInfoFileProperty.
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.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
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.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
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.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Example
ResModif is boolean
ResModif = HModifyFileProperty("MyConnection", ...
hOwner, "Vince","MyDatabase","Customer.fic")
IF ResModif = True THEN
Info("Modification performed")
END
Syntax
<Result> = HModifyFileProperty(<Connection Name> , <Property to Modify> , <New Value> , <Database Name> , <File Name>)
<Result>: Boolean
  • True if the properties have been modified,
  • False otherwise. HErrorInfo is used to identify the error.
<Connection Name>: Character string (with or without quotes)
Name of the connection for which the value of a property must be modified. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<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 (with quotes)
New value for the property.
<Database Name>: Character string (with quotes)
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.
<File Name>: Character string (with quotes)
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 database (rights corresponding to the hRightsChangeOwner constant). To find out whether the proper rights are granted to the user, use HInfoFileProperty.
Components
WINDEVWEBDEV - Server code wd230hf.dll
Windows Mobile wp230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment