Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re-creating SCX/SCT from SCA file
Message
From
11/12/2001 22:57:10
 
 
To
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:
00593071
Views:
26
This message has been marked as the solution to the initial question of the thread.
>>>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.

Go into SCCTEXT.PRG and change the constant SCC_FORM_SUPPORT to 2 rather than 1, and try running it. Works for me.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform