How to Find Out Which FoxPro Version Created an .SCX File (129572)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft FoxPro for Windows 2.5
  • Microsoft FoxPro for Windows 2.5a
  • Microsoft FoxPro for Windows 2.5b
  • Microsoft FoxPro for Windows 2.6
  • Microsoft FoxPro for Windows 2.6a
  • Microsoft FoxPro for MS-DOS 2.0
  • Microsoft FoxPro for MS-DOS 2.5
  • Microsoft FoxPro for MS-DOS 2.5a
  • Microsoft FoxPro for MS-DOS 2.5b
  • Microsoft FoxPro for MS-DOS 2.6
  • Microsoft FoxPro for MS-DOS 2.6a
  • Microsoft FoxPro for Macintosh 2.5b
  • Microsoft FoxPro for Macintosh 2.5c
  • Microsoft FoxPro for Macintosh 2.6a
  • Microsoft FoxPro for UNIX 2.6

This article was previously published under Q129572

SUMMARY

This article provides a way to verify the version of FoxPro that was used to create a Screen or a Form (.SCX file).

MORE INFORMATION

Files with an .SCX extension were introduced in FoxPro version 2.0 for MS- DOS. They are FoxPro tables that record information about screens (versions 2.x) or forms (Visual FoxPro version 3.0).

Screens created in FoxPro version 2.x do not contain information about the version of FoxPro used to create them. However, because the structure of an .SCX file is different depending on the version of FoxPro, you can use the FCOUNT() function to count the number of fields in an .SCX file and derive the FoxPro version used to create the file. The following lists the number of fields that an SCX contains for each version of FoxPro. This assumes that no structural change was made to the SCX:
FoxPro Versions                 Number of Fields
------------------------------------------------
FoxPro version 2.0              57 fields
FoxPro versions 2.5x and 2.6x   79 fields
Visual FoxPro version 3.0       23 fields
				
Visual FoxPro forms now include version information. The Reserved1 field of a Visual FoxPro form contains the version tag VERSION= 3.00. This information is recorded in the record of the form where the PLATFORM field is equal to COMMENTS (the first record in the form).

Modification Type:MajorLast Reviewed:12/3/2003
Keywords:KB129572