|
|
|
|
|
- Use conditions
- Multiple changes of name
- Changing the drive or the directory
- Function HChangeName: Use with Native Connectors and/or the OLE DB provider
- Miscellaneous
HChangeName (Function) In french: HChangeNom
Not available with this kind of connection
Modifies the physical name of a data file. Reminder: By default, the physical file is created with the name given to it in the analysis.
HChangeName(Stat, "JanuaryStatistics")
HCreation(Stat)
Syntax
<Result> = HChangeName(<Data file> , <Physical name>)
<Result>: Boolean - True if the operation was performed,
- False if a problem occurs. HError is used to identify the error.
<Data file>: Character string Name of the data file (defined in the analysis). This name is used by all the functions for handling HFSQL data files. <Physical name>: Character string New physical name of the data file.- If this parameter is an empty string (""), the physical name used will correspond to the physical name defined in the analysis.
- This parameter must contain no drive name and no directory name.
- This name will be stored when closing the data file.
- The PhysicalName property is used to find out the physical name given to the data file by HChangeName.
Remarks Use conditions - The data file must be closed in order for this modification to be taken into account (use HClose if necessary), otherwise the modification will be taken into account during the next opening.
- XML: Function HChangeName modifies the name of the XML TAG associated with the data file described in the analysis (i.e. does not change the physical name of the file).. To change the name of the file, you must use a connection (HDescribeConnection by specifying the name of the XML file as data source) and associate this connection with the file via HChangeConnection.
Multiple changes of name HChangeName can be called several times with different parameters. When the physical name is redefined several times for the same logical name, the last physical name that was given replaces all the other ones. Changing the drive or the directory HChangeName can only be used to change the name of the physical file. To modify its location, use HChangeDir and HSubstDir. Miscellaneous - If the management of ".REP" is enabled (HSetREP), the modification of the path is saved in the ".REP" file (see management of .REP files).
- HChangeName is equivalent to HSubstName, available in WINDEV 5.5/WEBDEV 1.5.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|