Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5976675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:15:44+00:00 2026-05-22T21:15:44+00:00

The challenge is that I’m checking my FoxPro code into source control (using Mercurial,

  • 0

The challenge is that I’m checking my FoxPro code into source control (using Mercurial, but that’s not the focus of this question) and would like a quick way to get the FoxPro SCCTEXT output alongside the binary output without using the Tools > Options > Projects > Active source control provider functionality.

For an example of the kind of output I’m looking to generate, the VFPX source contains many of these text .sca, .vca, etc. files. Is there any way to generate these files on demand?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:15:45+00:00Added an answer on May 22, 2026 at 9:15 pm

    Here is the code I use to genereate SCCText files for every file in my Project file. Just open your Project (to make sure it is the Active Project, then run this prg file).

    (Updated 2011-06-10: Added a new feature that will only build new SCC text files if the DateTime of the original source file is newer than the existing SCC file. Essentially, this new version only generates a new SCC file if the VFP source file has been changed since the last time this was run.)

    lnResponse = MessageBox('Run SSCText to generate ascii code files?', 3, 'Generate SCC files?')
    
    If lnResponse <> 6
        Return
    EndIf
    
    *Clear All
    *Release All
    Set ClassLib to && Must clear them out, cause we're about to generate ascii files of them
    
    lnCount = DoSCCTextOnProject()
    
    ? Chr(10)+Chr(13)
    ? 'Done. ' + Str(lnCount) + ' files processed.'
    
    *----------------------------------------------------------------------
    Procedure DoSCCTextOnProject
    
    Local loFile, loProject, lnCount
    
    lcSCCText = Home(1) + 'SCCText.prg'
    lnCount = 0
    If !File(lcSCCText)
        Messagebox('Unable to find file ' + lcSCCText, 16, 'Error')
        Return 0
    Endif
    
    Try
        loProject = _vfp.ActiveProject
    Catch To loEx
    Endtry
    
    If Type('loEx') = 'O'
        Messagebox('There are no active projects', 64, 'Error')
        Return 0
    Endif
    
    lcSkipFiles = 'LIST-FILES-TO-SKIP-HERE'
    
    For Each loFile In loProject.Files
    
        If Inlist(loFile.Type, 'V', 'K', 'R') and ;
             !InList(Upper(JustFname(loFile.name)), Upper(lcSkipFiles)) ;
             and Fdate(loFile.name, 1) > SCCFileDateTime(loFile.name)
                    ? 'Generating: ' + loFile.Name
                    Do (lcSCCText) With loFile.Name
                    lnCount = lnCount + 1 
        Endif
    Endfor 
    
    Return lnCount
    
    *------------------------------------------------------------------
    Procedure SCCFileDateTime(tcFile)
    
        lcSCCFilename = Upper(Strtran(Upper(tcFile), '.SCX', '.SCA'))
        lcSCCFilename = Strtran(lcSCCFilename, '.VCX', '.VCA')
        lcSCCFilename = Strtran(lcSCCFilename, '.FRX', '.FRA')
    
        If File(lcSCCFilename)
            Return Fdate(lcSCCFilename, 1)
        Else
            Return {^1900-01-01 00:00:00}
        EndIf
    EndProc
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Challenge: I have this code that fails to compile. Can you figure out what's
The challenge The shortest code by character count that will generate a beehive from
The challenge The shortest code by character count that will output the numeric equivalent
The challenge The shortest code by character count, that will output musical notation based
I'm trying to create a programming challenge that would require developers to hack into
I have a SQL challenge that is wracking my brain. I am trying to
I have a challenge that I am trying to solve and I can't work
I challenge you :) I have a process that someone already implemented. I will
I have been set a challenge to create an indexer that takes all words
Does anyone know any site or book that presents problems like python challenge ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.