PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
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
HComputer (Function)
In french: HPoste
ODBCNot available with this kind of connection
Warning
From version 25 (89), HPost is kept for backward compatibility. This function is replaced by HComputer.
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, HComputer 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.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Example
HComputer("45000")
// Affectation du numéro de poste lu dans l'entrée "NUMPOSTE"
// de la section "MONPROGRAMME" du fichier "WIN.INI"
NumPoste is string
NumPoste = INIRead("MONPROGRAMME", "NUMPOSTE", "")
IF NumPoste = "" THEN
Error("Problème de récupération du numéro de poste")
ELSE
HComputer(NumPoste)
END
Syntax
<Result> = HComputer(<Identifier>)
<Result>: Boolean
  • True if the computer number was stored,
  • False otherwise. HError returns more details about the problem.
<Identifier>: Character string
Identifies the current computer (up to 16 characters). This identifier can be viewed in WDTrans and WDLog. This identifier corresponds by Default to the name of the client computer (known with the NetMachineName function) or to the name of the computer where the data files are located (in the case of a remote analysis).
Remarks
  • In most cases, HComputer is used in network in association with a parameter file found on the local computer and indicating its number.
  • HComputer is useless if the data files do not have a log and/or if they are not the source of a transaction.
  • If HComputer is used after HTransactionStart, the computer number will be modified for the next operations performed.
  • This function is not available when using a database via Remote Access.
Business / UI classification: Business Logic
Component: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment