Yes, you are correct. But for some fields, I need to alter some of them to another field type before doing CURSORTOXML(). So when I do XMLTOCURSOR(), I still need to remember the fields I have to convert back to their original field type. If CREATE FORM and CREATE REPORT can do the same as CREATE CLASSLIB, then I don't have to bother remembering which to revert.
I guess there is no other way huh?
Thanks
Dennis
>But when you have XML you have all fields needed. You can just use XMLTOCURSOR() and copy that cursor with appropriate extention.
>
>
>>Borislav,
>>
>>I was hoping for a shortcut to what I am doing. I am attempting to convert VCXs, FRXs, SCXs into XML and back. From XML back to the original state, I would like just to do some form of CREATE FORM or CREATE REPORT similar to CREATE CLASSLIB which creates the table structure. Then, I can just do an APPEND FROM.
>>
>>Hope I made myself clear.
>>
>>Thanks
>>Dennis
>>
>>
>>>>Hi Tore,
>>>>
>>>>Thanks for your reply. But, I was hoping if there was some way to create them without the need to open an existing SCX or FRX.
>>>>
>>>>Like when you:
>>>>
CREATE CLASSLIB myClassLib
>>>>The above line creates a VCX/VCT file right away.
>>>>
>>>>Dennis
>>>>
>>>
>>>Why?
>>>
CREATE FORM MyForm NOWAIT
>>>But this also invokes Form designer.