PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
HPost (Function)
In French: HPoste
ODBCNot available with this kind of connection
Stores a unique computer number or identifier in order to use the log and transactions in network. The computer corresponds to the user computer.
By default, the computer is identified by a unique number and by the computer name (defined in Windows). To easily identify the computer that performs the operations in transaction, HPost allows you to define an identifier specific to the computer. This optional identifier replaces the computer name and it can be viewed in WDTrans and WDLog.
Windows Mobile Caution: The log process is available in Client/Server mode only.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Example
HPost("45000")
// Assign the computer number read in "COMPUTERNUM" entry
// of "MYPROGRAM" section of "WIN.INI" file
ComputerNum is a string
ComputerNum = INIRead("MYPROGRAM", "COMPUTERNUM", "")
IF ComputerNum = "" THEN
Error("Problem retrieving the computer number")
ELSE
HPost(ComputerNum)
END
Syntax
<Result> = HPost(<Identifier>)
<Result>: Boolean
  • True if the computer number was stored,
  • False otherwise. HError returns more details about the problem.
<Identifier>: Character string (with quotes)
Identifies the current computer (up to 16 characters). This identifier can be viewed in WDTrans and WDLog. This identifier corresponds to the name of client computer (returned by NetMachineName) or to the name of computer were the data files are found (for a remote analysis).
Remarks
  • In most cases, HPost is used in network in association with a parameter file found on the local computer and indicating its number.
  • HPost is useless if the files are not logged and/or if they are not in transaction.
  • If HPost is used after HTransactionStart, the computer number will be modified for the next operations performed.
  • This function is not available when accessing a database via Remote Access.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Linux wd230hf.so
Windows Mobile wp230hf.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment