UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\BASICREF\BASRX.fm 3/5/10 Parameter Description Return Values The following table describes the return values for the XMAPOpen function. 1-994 UniBasic Commands Reference u2xmapping_rules The name of the U2XMAP file, or the UniBasic variable containing the XML to Database mapping rules. u2xmap_flag A flag indicating if the mapping file is the U2XMAP file itself or a string located within the UniBasic program. Valid values are: XMAP.FROM.FILE - the mapping rules are contained in a U2XMAP file. XMAP.FROM.STRING - u2xmap_flag is the name of the variable containing the mapping rules. XMAPhandle The handle to the XMAP dataset. This API registers the current in-encoding and out-encoding parameters in the XMAPhandle. These parameters are used throughout the life of the XMAPhandle. XMAPOpen Parameters (continued) Return Value Description XML_SUCCESS The XML document was opened successfully. XML_ERROR An error occurred opening the XML document. XMAPOpen Return Values

C:\Program Files\Adobe\FrameMaker8\UniData XMAPReadNext Syntax XMAPReadNext(XMAPhandle, file_name, record) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description The XMAPReadNext function retrieves the next record from the U2XMAP dataset and formats it as a record of the UniData file that is being mapped. Parameters The following table describes each parameter of the syntax. Parameter Description XMAPhandle The U2XMAP dataset handle. The XMAPhandle parameter uses the out-encoding parameter set in the system-level or account-level xmlconfig file, the XMLSETOPTIONS command, or the XMLSetOptions() API for the record value. file_name The name of the UniData file that is being mapped in the U2XMAP dataset. record The data record formatted according to the dictionary record of the file. XMAPReadNext Parameters XMAPReadNext 1-995

C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\BASICREF\BASRX.fm<br />

3/5/10<br />

Parameter Description<br />

Return Values<br />

The following table describes the return values for the XMAPOpen function.<br />

1-994 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

u2xmapping_rules The name of the U2XMAP file, or the <strong>UniBasic</strong> variable<br />

containing the XML to Database mapping rules.<br />

u2xmap_flag A flag indicating if the mapping file is the U2XMAP file itself<br />

or a string located within the <strong>UniBasic</strong> program. Valid values<br />

are:<br />

XMAP.FROM.FILE - the mapping rules are contained in a<br />

U2XMAP file.<br />

XMAP.FROM.STRING - u2xmap_flag is the name of the<br />

variable containing the mapping rules.<br />

XMAPhandle The handle to the XMAP dataset.<br />

This API registers the current in-encoding and out-encoding<br />

parameters in the XMAPhandle. These parameters are used<br />

throughout the life of the XMAPhandle.<br />

XMAPOpen Parameters (continued)<br />

Return Value Description<br />

XML_SUCCESS The XML document was opened successfully.<br />

XML_ERROR An error occurred opening the XML document.<br />

XMAPOpen Return Values

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!