Use three parameters. First param is the tablename or workarea; 2nd is type of output where 2 = element; 3rd is the output xml file name.
Try this instead:
cursorToXML('mytable', 2, 'test.xml')
HTH.
>Hi
>select 0
>use Mytable shared
>?CursorToXML(0, "test.xml")
>creates the following error:
>'Function argument,value or count is invalid'
>
>Why? the Helpfile state only 2 parameters are required.
>
>Peter
ramil
~~ learning to stand still