Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create an SCX programmatically w/o Forms Designer
Message
From
09/10/2006 08:45:15
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01160457
Message ID:
01160513
Views:
13
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform