vfp9

How to completely uninstall VFP 9.0

Uninstalling VFP 9.0 does not remove VFP settings stored in the registry or any files that have been added to installation after the fact.
To completely uninstall VFP 9.0

  1. Launch VFP and note directories returned by HOME() and HOME(7) functions
  2. Uninstall VFP
  3. Delete directories from step 1
  4. delete registry key HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\9.0

Keep in mind that it will delete all previous VFP settings. You may want to make backup before doing that if you want to restore settings later.

VFP OLE DB provider

The VFP OLE DB Provider allows other programming languages and applications to access Visual FoxPro databases and tables.

The VFP OLE DB Provider is 32-bit dll (VfpOleDB.dll) and cannot be used by 64-bit applications.

VFP OLE DB provider can be downloaded from here. It's the same version as the one included with Visual FoxPro 9.0 SP2.

Retrieving Windows TaskBar Size and Location

A location and size of the Windows Taskbar can be retrieved with SHAppBarMessage Function.

Who has files open on the network

The WhoHasFileOpen utility displays the list of users who have specific file(s) open on network. Works on Windows NT Platform (Windows NT 4.0, Windows 2000, etc). This code detects only the files opened using a net shared path. It does not return the files opened by a user on the local computer using a local path.

Retrieving Extended File Properties

When you right-click a file in Windows Explorer and select Properties from the shortcut menu, a dialog box displays basic properties for that file, including such things as file name, file size, and the file creation, last access, and last modification dates. In addition to these basic properties, the Windows operating system also tracks a number of extended file properties. These properties are typically hidden; to display them in Windows Explorer, you must click View, click Choose Details, and then select the desired properties from the resulting dialog box.

The Shell Folder object includes a GetDetailsOf method that allows to access these extended properties. A ParseName method can be used to retrieve a FolderItem object that represents a specified item.

Formating a date as a date string for a locale specified

The GetDateFormat Windows API function formats a date as a date string for a Locale Identifier specified. The formatting is controlled either by flags or by the formatting string, if provided. The function accepts SYSTEMTIME Structure as one of its parameters.

$SAMPLECODE$

#DEFINE LOCALE_USER_DEFAULT	0x400
#DEFINE DATE_LONGDATE		0x2

How to disable Task Pane Manager

Either of below will disable Task Pane Manager launch on VFP startup:

  • Click on the Task Pane's Options, Select Task Pane Manager in the treeview and uncheck Open the Task Pane when Visual FoxPro starts
  • Go to Tools, Options, File Locations and clear Startup Program. Click on Set As Default to save changes.
  • In the RegEdit go to the HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\9.0\Options key and blank out Data for Value Name _STARTUP.
  • Add _STARTUP= to a config.fpw. Only VFP instance that uses this config.fpw will be affected.

Pages

Subscribe to RSS - vfp9