Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re-creating SCX/SCT from SCA file
Message
From
11/12/2001 13:50:35
Larry Huisingh
Lockheed Martin Information Technology
Richland, Washington, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00592688
Message ID:
00592823
Views:
24
>>I seem to have a set of corrupted SCX/SCT files. I can modify the form but it doesn't look right and seems to have a wrong parent class. I have an SCA file from SourceSafe and it appears it might be a better representation of the form. Source safe only has an out of date version of the form files. Is there a way to create the form files from the SCA file?
>
>Absolutely; look at the source code for SCCTEXT for your version of VFP; I posted the header from the VFP7 version yesterday. SCCTEXT takes 4 parameters, the type of file (stated in a set of constants that appear as #DEFINEs in the code, the name of the DBF pair, the name of the text file, and whether you want to prepare the text file from the DBF pair, or the DBF pair from the text file. Simply copy the SCA down into the directory you want to create the files in, switch to that directory, and then
DO (HOME()+'SCCTEXT') WITH <i>your parameters go here</i>
Thanks for the suggestion but it didn't work for me. I used the command
do (home()+'scctext') with "useredit.scx","K","useredit.sca",.f.
and the program said that it couldn't create a binary file for type "K" files.

Any ideas?
Larry Huisingh
Lockheed Martin Information Technology
Richland WA USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform