PC SOFT

WINDEV的在线文档

  • When should I use H密码?
  • Defining a password on a data file
  • Deleting the password defined on a data file
  • Managing the password (OLE DB and Native Accesses)
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Defines the password used to create or open a data file. The password is stored and it will be used when opening or creating the data file if no password is specified.

Caution: A password must be defined to perform a data encryption. The data encryption must be configured during the description of the data file in the data model editor ("Details" tab).

Note: This password can also be specified in the functions for creating the data file (H创建, H如果不存在则创建存在则打开) and for opening the data file (H打开).

18版本和更高版本
WinDevWindows Store apps This function is now available in Windows Store apps mode.
WinDev This function is now available for the Java applications.
18新版本
WinDevWindows Store apps This function is now available in Windows Store apps mode.
WinDev This function is now available for the Java applications.
WinDevWindows Store apps This function is now available in Windows Store apps mode.
WinDev This function is now available for the Java applications.

Note: From version 19, HFSQL is the new name of HyperFileSQL.
例子
// Open a file with password and error check
H密码CUSTOMER"Password"
如果H如果不存在则创建存在则打开CUSTOMER)=,那么
错误"HFSQL error: "+H错误信息())
返回
结束
// HErrorPassword is used to find out whether the error that occurred is a password error
如果H如果不存在则创建存在则打开()=,那么
// Details of the error
如果H密码错误()=,那么
错误"Invalid password"
// Code to retry
结束
结束

语法
<Result> = H密码(<File Name> [, <Password>])
<Result>: Boolean
  • if the password is saved,
  • if an error occurred (insufficient memory for example). H错误 and H错误信息 return more details about the problem.
<File Name>: Character string (with or without quotes)
Name of the data file that is using a password.
If this parameter corresponds to "*", the password will be used for all the data files described in the analysis.
This parameter can also correspond to the name of a group of files (or custom-folder) defined in the analysis. In this case, the password will be used for all the files of the group.
If the data file is declared by H导入数据库表, <File Name> corresponds to the name of the file alias.
<Password>: Optional character string (with quotes)
Password associated with the data file.
If this parameter is not specified or if it corresponds to an empty string (""), no password is defined for the data file. The size of the password is not limited.

HFSQLHFSQL Client/Server The password of the HFSQL files is not sensitive to the case.

注意

When should I use H密码?

H密码 must be called:Notes:

Defining a password on a data file

A data file will be password protected if:Note: A data file can be password-protected without being encrypted (and conversely). The password is independent of data encryption. The data encryption must be configured during the description of the data file in the data model editor ("Details" tab).

Deleting the password defined on a data file

To delete a password on a data file, an automatic modification of data files must be performed.

To do so, perform a modification in the analysis (modify the size of an item for example). In this case, an automatic modification of data files will be proposed when the analysis is generated. You will be able to modify or delete the password associated with one or more data files.

If your data files are already deployed, specify that an automatic modification of data files is required when creating the setup program. The password will be deleted or modified.

Caution: don't forget to modify your code accordingly if the password defined for your data files is deleted.

WinDev用户代码(MCU)外部语言存储过程OLE DB本地访问

Managing the password (OLE DB and Native Accesses)

The password must be specified in the parameters of the connection.

组件
WinDev wd200hf.dll
Linux wd200hf.so