On Sat, 4 Feb 2006 23:02:19 -0500 (EST), you wrote:

>Can anyone shed light on why this simple example won't compile?  It dies
>on the OpenXMLData line.
>
>X.XML.INPUT.FILE = '_XML_/test.xml'
>X.XML.EXT.RULE.FILE = '_XML_/test.ext'
>X.STATUS = PrepareXML(X.XML.INPUT.FILE, X.XML.HANDLE)
>X.STATUS = OpenXMLData(X.XML.HANDLE, X.XML.EXT.RULE.FILE, X.XML.DATA.HANDLE)
>X.EOF = 0
>LOOP
>WHILE X.EOF = 0 DO
>  X.STATUS = ReadXMLData(X.XML.DATA.HANDLE, X.REC)
>  IF X.STATUS = XML.EOF THEN
>    X.EOF = 1
>  END ELSE
>    PRINT "Read record ":X.REC
>  END
>REPEAT
>X.STATUS = CloseXMLData(X.XML.DATA.HANDLE)
>X.STATUS = ReleaseXML(X.XML.HANDLE)
>
>
>
>Compiling Unibasic: CUSTOM.SOURCE/H08.P.TEST.XML in mode 'u'.
>main program: syntax error at or before
><line 7> X.STATUS = OpenXMLData(X.XML.HANDLE, X.XML.EXT.RULE.FILE, 
>X.XML.DATA.HANDLE)
>         --------------------------------------------------------^
>Expecting:
>array,string,number,function,variable,OR,AND,!,>,>=,<,<=,=,<>,MATCH,CAT,:,+,-
>
>Warning: Variable 'X.REC' never assigned a value
>Warning: Variable 'X.XML.DATA.HANDLE' never assigned a value
>Warning: Variable 'X.XML.HANDLE' never assigned a value
>Warning: Variable 'XML.EOF' never assigned a value
>matrix "PrepareXML" undefined.
>matrix "CloseXMLData" undefined.
>matrix "ReadXMLData" undefined.
>matrix "ReleaseXML" undefined.
>compilation failed

The compiler is seeing what you're defining as functions as matrixes,
and you've exceeded the maximum number of dimensions in OpenXMLData.

That is you can only use an X and Y dimension, not X, Y and Z which is
what the compiler is seeing.

Which means that you've got a more basic problem 'cause you're not
trying to use matrixes.  You need to somehow define the
subroutines/functions you're trying to use.

HTH.
-- 
Allen Egerton
[EMAIL PROTECTED]
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to