Microsoft KB Archive/114949

= INFO: Description of the FOXTOUCH Function =

Article ID: 114949

Article Last Modified on 2/11/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft FoxPro 2.6 Standard Edition
 * Microsoft FoxPro 2.6a Standard Edition

-



This article was previously published under Q114949



SUMMARY
The FOXTOUCH function can be used to change the date/time stamp on a specified file. This article describes the FOXTOUCH function.

NOTE: For backward compatibility, Visual FoxPro still supports FOXTOOLS.FLL (included in earlier FoxPro versions), the Visual FoxPro API library that allows calls to 16-bit .DLL functions. However, in Visual FoxPro, the DECLARE command is the preferred method for calling .DLL functions.

WARNING: The FOXTOUCH function is not supported by Microsoft Technical Support either electronically or by telephone. This function may not work in future versions of Visual FoxPro.



MORE INFORMATION
The FOXTOUCH function changes the time stamp of the file specified with. If the time stamp parameters are not specified, the file is stamped with the current system information.

The syntax of the FOXTOUCH function is described below:   FOXTOUCH ( ,[,,,,,])

- The name of the file to be modified  - The year to be stamped  - The month to be stamped  - The day to be stamped  - The hour to be stamped  - The minute to be stamped  - The seconds to be stamped

Example
<pre class="fixed_text">  SET LIBRARY TO foxtools.fll =FOXTOUCH( "myfile.txt", 1984, 2, 10, 13, 20, 6) This will change the date/time stamp of the file MYFILE.TXT to: <pre class="fixed_text">  2/10/84  1:20:06pm The FOXTOUCH function is not contained within FoxPro itself. The FOXTOUCH function is contained within FOXTOOLS.FLL. To use this function, you must first use the SET LIBRARY TO command to set the library to FOXTOOLS.FLL.

Under FoxPro 2.x, for more information about FOXTOOLS.FLL please see the FOXTOOLS.WRI file, which is located in the GOODIES\FOXTOOLS subdirectory of the FoxPro for Windows directory. In Visual FoxPro, see FOXTOOLS.HLP in the VFP\TOOLS directory.

The FOXTOUCH function was added to FOXTOOLS.FLL version 1.03. FOXTOOLS.FLL version 1.03 is shipped with FoxPro version 2.6 for Windows. The FOXTOUCH function does not exist in versions of FOXTOOLS.FLL that shipped with earlier versions of FoxPro for Windows.

Additional query words: VFoxWin FoxWin 2.60 2.60a

Keywords: kbinfo KB114949

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.