Help / WLanguage / Managing databases / HFSQL / HFSQL functions
  • Array items
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
HRecordToXML (Function)
In french: HEnregistrementVersXML
ODBCNot available with this kind of connection
Retrieves the structure and the value of the current record and exports them into a character string in XML format.
Remark: This function can be used on the data files and on the queries.
// Export current record of the last data file used
sXML is string = HRecordToXML()
// Export current record of "Customer"
sXML is string 
sXML = HRecordToXML(Customer)
// Export current record of "Customer"
// Remark: only the NAME and NUMBER items are taken into account
sXML is string 
sXML = HRecordToXML(Customer, "NAME,NUMBER")
<Result> = HRecordToXML([<Data file> [, <List of items> [, <Charset>]]])
<Result>: ANSI character string
Structure and value of the current record in XML format. This structure has the following format:
<ITEM1> data of item 1 </ITEM1>
<ITEM2> data of item 2 </ITEM2>
<ITEM3> data of item 3 </ITEM3>
<Data file>: Optional character string
Name of the HFSQL data file or query used. If this parameter is not specified, the last HFSQL data file used will be taken into account.
<List of items>: Optional character string
Name of the items to export.
If several items are specified, the name of the items must be separated by a comma.
Composite key, binary memo or binary items are ignored.
If this parameter is not specified or if it corresponds to an empty string (""), all the items are exported (except Composite Key items, Binary Memo items and Binary items) in the physical order of description.
<Charset>: Integer constant
Character set that will be used to generate the XML file:
charsetAnsiRoman characters in ANSI standard
charsetArabicArabic characters
charsetBalticBaltic characters
charsetChineseChinese characters (People's Republic of China)
charsetDefaultUses the computer's default character set. No character set is forced.
charsetEastEuropeEastern European characters (Polish, etc.)
charsetGreekGreek characters
charsetHebrewHebrew characters
charsetJapaneseJapanese characters
charsetKoreanKorean characters
charsetOccidentalRoman characters in ANSI standard
charsetRussianRussian characters
charsetThaiThai characters
charsetTraditionalChineseTraditional Chinese characters (Republic of Taiwan)
charsetTurkishTurkish characters
charsetUTF8Used to manage the countries with two character sets (Hong Kong) and the countries with no character set defined in Windows (Georgian and Armenian).
charsetVietnameseVietnamese characters

Array items

If one of the exported items is an array item, each element of the array item is exported in a new level:
<ITEM1> data of item 1 </ITEM1>
<ITEM2> data of item 2 </ITEM2>
<ARRITEM_1> data of element 1 </ARRITEM_1>
<ARRITEM_2> data of element 2 </ARRITEM_2>
<ARRITEM_3> data of element 3 </ARRITEM_3>

Reminder: Composite key, binary memo or binary items are ignored.
Component: wd300hf.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 06/06/2024

Send a report | Local help