FoxUser Resource File Structure
| Visual FoxPro 9.0 SP2 |
| FoxUser Resource File Structure |
| See Also |
|
The FoxPro resource file FoxUser.dbf holds a variety of resource information (for example, window positions, color sets, Browse window configurations, label definitions, and so on.). FoxUser.dbf is a standard FoxPro table with an associated memo file (.FPT). If the index file does not exist, it is created when the FoxUser.dbf file is opened.
Unlike in earlier versions of Visual FoxPro, the FoxUser.dbf resource file is opened SHARED
While RESOURCE is SET ON, FoxPro handles all resource management. You can modify the data contained in this file in two ways:
-
Special window configurations or other window preferences, once established and saved in the resource file, can be protected from subsequent interactive changes by modifying the READONLY field for the specific resource (see the example in the Predefining Browse Window Configuration section).
-
Resources that are no longer needed or wanted may be deleted and the resource file may be packed.
Modifying the READONLY field and/or deleting records from the resource file are the only actions you should perform on the FoxUser.dbf file. You should make a copy of the resource file before making any modifications.
The FoxUser.dbf table has the following structure:
| Field | Field Name | Type | Width |
|---|---|---|---|
|
1 |
TYPE |
Character |
12 |
|
2 |
ID |
Character |
12 |
|
3 |
NAME |
Memo |
4 |
|
4 |
READONLY |
Logical |
1 |
|
5 |
CKVAL |
Numeric |
6 |
|
6 |
DATA |
Memo |
4 |
|
7 |
UPDATED |
Date |
8 |
- TYPE
-
Identifies the type of information the resource holds
- ID
-
Identifies the record with the TYPE
- NAME
-
Contains the name assigned to the resource, for instance the name assigned to color sets, BROWSE windows, and system windows
- READONLY
-
A logical field that can be set to true (.T.) to indicate that the resource should be used for read-only access and cannot be changed
- CKVAL
-
Used by FoxPro to verify the data (in the memo field DATA) is valid
- DATA
-
Memo field that holds the actual data for the resource
- UPDATED
-
The date the current resource was last changed
You can make the FoxUser.dbf resource file read-only by marking it at the MS-DOS level. The MS-DOS command ATTRIB uses the <+R> setting to mark a file as read only. Marking a file read-only is useful in multiuser situations, because the FoxUser.dbf can be shared on a network.
Modifying the FoxUser.dbf Resource File
Predefining Browse Window Configuration
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08