UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\BASICREF\BASRX.fm 3/5/10 Examples The following example shows the format for entering the XML options in this API. 1-1010 UniBasic Commands Reference XMLSetOptions("encoding=iso-8859-1 newline=CR-LF") The next example shows the format for entering a special string as the options parameter: XMLSetOptions("defaults") Return Codes The return code indicates success or failure. The following table describes each return code. Return Code Description XML.SUCCESS Function completed successfully. XML.ERROR When the return status is XML.ERROR, XMLGetError() returns one of the following error codes: 38 Invalid XML config key: ‘key_name’ 39 Invalid XML config value: ‘value_string’ 40 Invalid XML config format: ‘name_value_string’ Note: When the return code is XML.ERROR, none of the XML parameters are changed. XMLSetOptions Return Codes
C:\Program Files\Adobe\FrameMaker8\UniData XMLTODB Syntax XMLTODB(xml_document, doc_flag, u2xmapping_rules, u2xmap_ flag, status) Description The XMLTODB function populates the UniData database from UniBasic. If you want to transform specific data, use the XMAP API. Parameters The following table describes each parameter of the syntax. Parameter Description xml_document The name of the XML document. doc_flag A flag defining the type of xml_document. Valid values are: XML.FROM.DOM - xml_document is a DOM handle. XML.FROM.FILE - xml_document is a file name. XML.FROM.STRING - xml_document is the name of variable containing the XML document u2xmapping_rules The mapping rules for the XML document. 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. Status The return status. XMAPOpen Parameters XMLTODB 1-1011
- Page 1026 and 1027: C:\Program Files\Adobe\FrameMaker8\
- Page 1028 and 1029: C:\Program Files\Adobe\FrameMaker8\
- Page 1030 and 1031: C:\Program Files\Adobe\FrameMaker8\
- Page 1032 and 1033: C:\Program Files\Adobe\FrameMaker8\
- Page 1034 and 1035: C:\Program Files\Adobe\FrameMaker8\
- Page 1036 and 1037: C:\Program Files\Adobe\FrameMaker8\
- Page 1038 and 1039: C:\Program Files\Adobe\FrameMaker8\
- Page 1040 and 1041: C:\Program Files\Adobe\FrameMaker8\
- Page 1042 and 1043: C:\Program Files\Adobe\FrameMaker8\
- Page 1044 and 1045: C:\Program Files\Adobe\FrameMaker8\
- Page 1046 and 1047: C:\Program Files\Adobe\FrameMaker8\
- Page 1048 and 1049: C:\Program Files\Adobe\FrameMaker8\
- Page 1050 and 1051: C:\Program Files\Adobe\FrameMaker8\
- Page 1052 and 1053: C:\Program Files\Adobe\FrameMaker8\
- Page 1054 and 1055: C:\Program Files\Adobe\FrameMaker8\
- Page 1056 and 1057: C:\Program Files\Adobe\FrameMaker8\
- Page 1058 and 1059: C:\Program Files\Adobe\FrameMaker8\
- Page 1060 and 1061: C:\Program Files\Adobe\FrameMaker8\
- Page 1062 and 1063: C:\Program Files\Adobe\FrameMaker8\
- Page 1064 and 1065: C:\Program Files\Adobe\FrameMaker8\
- Page 1066 and 1067: C:\Program Files\Adobe\FrameMaker8\
- Page 1068 and 1069: C:\Program Files\Adobe\FrameMaker8\
- Page 1070 and 1071: C:\Program Files\Adobe\FrameMaker8\
- Page 1072 and 1073: C:\Program Files\Adobe\FrameMaker8\
- Page 1074 and 1075: C:\Program Files\Adobe\FrameMaker8\
- Page 1078 and 1079: ASCII Character Codes This appendix
- Page 1080 and 1081: A-3 UniBasic Commands Reference ASC
- Page 1082 and 1083: A-5 UniBasic Commands Reference ASC
- Page 1084 and 1085: A-7 UniBasic Commands Reference ASC
- Page 1086 and 1087: A-9 UniBasic Commands Reference ASC
- Page 1088 and 1089: A-11 UniBasic Commands Reference AS
- Page 1090 and 1091: UniBasic@variables This appendix li
- Page 1092 and 1093: B-3 UniBasic Commands Reference @va
- Page 1094 and 1095: @USER0 @USER1 @USER2 @USER3 @USER4
- Page 1096 and 1097: B-7 UniBasic Commands Reference @SY
- Page 1098 and 1099: B-9 UniBasic Commands Reference Uni
- Page 1100 and 1101: C-2 UniBasic Commands Reference Ari
- Page 1102 and 1103: C-4 UniBasic Commands Reference Boo
- Page 1104 and 1105: Reserved Words This appendix lists
- Page 1106 and 1107: D-3 UniBasic Commands Reference Res
- Page 1108 and 1109: D-5 UniBasic Commands Reference Res
- Page 1110 and 1111: D-7 UniBasic Commands Reference Res
- Page 1112 and 1113: D-9 UniBasic Commands Reference Res
- Page 1114 and 1115: Commands Affected by BASICTYPEs and
- Page 1116 and 1117: Command or Function E-3 UniBasic Co
- Page 1118 and 1119: Command or Function E-5 UniBasic Co
- Page 1120 and 1121: Command or Function E-7 UniBasic Co
- Page 1122 and 1123: F-2 UniBasic Commands Reference Com
- Page 1124 and 1125: F-4 UniBasic Commands Reference Com
C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\BASICREF\BASRX.fm<br />
3/5/10<br />
Examples<br />
The following example shows the format for entering the XML options in this API.<br />
1-1010 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />
XMLSetOptions("encoding=iso-8859-1 newline=CR-LF")<br />
The next example shows the format for entering a special string as the options<br />
parameter:<br />
XMLSetOptions("defaults")<br />
Return Codes<br />
The return code indicates success or failure. The following table describes each<br />
return code.<br />
Return Code Description<br />
XML.SUCCESS Function completed successfully.<br />
XML.ERROR When the return status is XML.ERROR, XMLGetError() returns<br />
one of the following error codes:<br />
38 Invalid XML config key: ‘key_name’<br />
39 Invalid XML config value: ‘value_string’<br />
40 Invalid XML config format: ‘name_value_string’<br />
Note: When the return code is XML.ERROR, none of the<br />
XML parameters are changed.<br />
XMLSetOptions Return Codes