PC SOFT

WINDEV的在线文档

  • Starting an application associated with an analysis
  • Starting an application not associated with an analysis
  • Opening an analysis this is already opened
  • Syntax 2: opening a remote analysis
  • Version of the analyses opened by H打开数据模型
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Opens an analysis in HFSQL Classic format. This allows you to access the data files described in the analysis as well as the structure of these data files.

Reminder: A single analysis can be opened at a given time. If an analysis was already opened before the call to the function, this analysis is automatically closed as well as the associated data files.

Caution: When using H打开数据模型, the current HFSQL context is automatically re-initialized. The following operations are automatically performed:

  • All the opened data files are closed.
  • All the existing HFSQL views are deleted.
  • All the existing queries are deleted.
  • All the declarations performed by H导入数据库表 and H描述数据库表 are deleted.
18版本和更高版本
WinDevWindows Store apps This function is now available in Windows Store apps mode.
18新版本
WinDevWindows Store apps This function is now available in Windows Store apps mode.
WinDevWindows Store apps This function is now available in Windows Store apps mode.

Note: From version 19, HFSQL is the new name of HyperFileSQL.
例子
// Open the SALESMGT analysis
H打开数据模型"C:\SALESMGT\SALESMGT.WDD""Password"

语法

Opening a HFSQL analysis locally 隐藏详细信息

<Result> = H打开数据模型(<Path of .WDD> [, <Password>])
<Result>: Boolean
  • if the analysis was opened,
  • otherwise. H错误 returns more details about the problem.
<Path of .WDD>: Character string (with quotes)
Full path of the ".WDD" file of the analysis. This file contains the description of the analysis to open.

WinDev If only the drive and the name of the analysis are specified, the analysis is sought in the current directory of the specified drive.
If neither the drive, nor the analysis path are specified, the analysis is sought in the current directory of the current disk.
To find the analysis in the current directory of the specified drive, use the following syntax: <Unit>:<Analysis Name>.
<Password>: Optional character string
  • Password of the analysis, defined in the data model editor.
  • Empty string ("") if no password is associated with the analysis.

Opening a remote HFSQL analysis 隐藏详细信息

<Result> = H打开数据模型(<Path of .WDD> , <Password> , <Server Address> , <User Name> , <User Password>)
<Result>: Boolean
  • if the analysis was opened,
  • otherwise. H错误 returns more details about the problem.
<Path of .WDD>: Character string (with quotes)
Full path of the ".WDD" file of the analysis. This file contains the description of the analysis to open.

WinDev If only the drive and the name of the analysis are specified, the analysis is sought in the current directory of the specified drive.
If neither the drive, nor the analysis path are specified, the analysis is sought in the current directory of the current disk.
To find the analysis in the current directory of the specified drive, use the following syntax: <Unit>:<Analysis Name>.
<Password>: Character string (with quotes)
  • Password of the analysis, defined in the data model editor.
  • Empty string ("") if no password is associated with the analysis.
<Server Address>: Character string (with quotes)
IP address or DNS name of the server.
Reminder: An IP address is a character string containing the "Internet Protocol" address of the computer in the xxx.xxx.xxx.xxx format.
<User Name>: Character string (with quotes)
Name of the user (used to access the data).
<User Password>: Character string (with quotes)
User password (associated with the user name) .

注意

Starting an application associated with an analysis

  • When starting an application, the analysis associated with this application is automatically opened. The analysis is sought in the main library of the application, then in the directory of the application.
    To make sure the analysis is found, we advise you to include the analysis in the main library of the application.
  • If H打开数据模型 is called by an application associated with an analysis, this function:
    • has no effect if the path of the specified analysis corresponds to the path of the analysis associated with the application.
    • returns if the path of the specified analysis does not exist. In this case, the application keeps working with the current analysis.
    • opens the analysis and returns if the specified analysis exists and if it is valid.

Starting an application not associated with an analysis

When starting an application not associated with an analysis, no analysis is automatically opened. Therefore, H打开数据模型 must be used.

The analysis opened by H打开数据模型 is sought:

  • first, in the main library of the application according to its full physical name.
  • then, on the current disk.

Opening an analysis this is already opened

H打开数据模型 has no effect if the analysis opened by H打开数据模型 is already opened.

Syntax 2: opening a remote analysis

This syntax is used to handle the data files via Internet: this operation is transparent to the user. We recommend that you use H连接远程访问.

Caution: If a "remote" analysis is opened, some HFSQL functions are not run locally anymore: these functions are sent to the DLL for managing the remote HFSQL functions via the remote access module of wdxxxcom.dll. The only change (from a programming point of view) for an application that uses the remote access is performed in the opening of the analysis.

Note: To open a remote analysis, a specific configuration is required for the server and for the client computer. See Remote access with HFSQL for more details.

Version of the analyses opened by H打开数据模型

H打开数据模型 cannot be used to open the analyses in Hyper File 5.5 format (and earlier). Only HFSQL Classic analyses can be opened.

To use H打开数据模型 on Hyper File 5.5 files, you must use the " .Wdd" file of a HFSQL Classic analysis containing files in Hyper File 5.5 format. In this case, the ".Wdd" file of the initial WinDev 5.5 analysis must be found in the directory of the executable.

You also have the ability to use H声明 to handle a Hyper File 5.5 file directly.

组件
WinDev wd200hf.dll
Linux wd200hf.so