Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New TMPFILE= options, VFPA
Message
From
19/03/2019 19:10:24
 
 
To
18/03/2019 09:50:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667313
Message ID:
01667376
Views:
102
Hi Thomas,

I added a SYS(9021) function in VFP Advanced:

Resets the special terms.

SYS(9021, cTerm , cPath)

Parameters
cTerm
Specifies the special term name.
cPath
Specifies the path name to save temporary files.

Return Value
Character

Remarks
Recommend to reset the special terms in the init code.

The following list contains the special terms in Visual FoxPro Advanced:
-------------------------------------------------------------------------------------------------------------
| Term and syntax | Description |
-------------------------------------------------------------------------------------------------------------
| SYS(9021,"TMPFILES",path) | Specifies where temporary work files |
-------------------------------------------------------------------------------------------------------------
| SYS(9021,"EDITWORK",path) | Specifies where the text editor should place its work files |
-------------------------------------------------------------------------------------------------------------
| SYS(9021,"PROGWORK",path) | Specifies where Visual FoxPro stores the program cache file |
-------------------------------------------------------------------------------------------------------------
| SYS(9021,"SORTWORK",path) | Specifies where commands such as SORT and INDEX should place work files |
-------------------------------------------------------------------------------------------------------------

The following list contains the expanded Environment Variables in Visual FoxPro Advanced:
-------------------------------------------------------------------------------------------------------------
| Environment Variables | Description |
-------------------------------------------------------------------------------------------------------------
| User Environment Variables | For example, SYS(9021,"TMPFILES","%TEMP%") |
-------------------------------------------------------------------------------------------------------------
| VFPPROCESSID | The GetCurrentProcessId() Windows API, returns a 8-character name. |
| | For example, SYS(9021,"TMPFILES","%TEMP%\%VFPPROCESSID%") |
-------------------------------------------------------------------------------------------------------------
| VFPGUID | The CoCreateGuid() Windows API, returns a 38-character name. |
| | For example, SYS(9021,"TMPFILES","%TEMP%\%VFPGUID%") |
-------------------------------------------------------------------------------------------------------------
| VFPTIMESTAMP | Visual FoxPro TIMESTAMP data, returns a 10-character name. |
| | For example, SYS(9021,"TMPFILES","%TEMP%\%VFPTIMESTAMP%") |
-------------------------------------------------------------------------------------------------------------
| VFPPROCNAME | The SYS(2015) function, returns a unique 10-character procedure name. |
| | For example, SYS(9021,"TMPFILES","%TEMP%\%VFPPROCNAME%") |
-------------------------------------------------------------------------------------------------------------

Now we can reset or change the temporary path easily.

Best regards.

Chen
2019.3.20
Welcome to VFP C++ Compiler: http://www.baiyujia.com/vfpcompiler
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform