AError() function returns extended information for errors 1104 and 1105 in Visual FoxPro 9.0 SP2

Visual FoxPro 9.0 Service Pack 2 improves the capability of the AError() function for errors 1104 - Error reading file, and 1105 - Error writing file. For these errors only, the array produced by AError() contains additional error information consisting of the underlying operating system error number and error text. The error number and error text are stored in the AError() array, elements 6 and 7 respectively.

This additional error information corresponds to the values returned by the Windows API function GetLastError().

Retrieving version of VFP OLE DB provider

A version of VFP OLE DB provider installed on computer can be retrieved from provider itself or from its DLL through the registry.

Not enough memory for file map (Error 1150)

The explanation for the error isn't too helpful and even confusing as the error often shows up on computers with plenty of memory.

Get rid of annoying security alerts in Microsoft Outlook

The Advanced Security for Outlook from is free Outlook add-in that allows end-user to take control over Outlook security alerts.

Fix VFP file associations to open files in one VFP instance

The files associated with VFP are opened in a new instance of VFP when double-clicked or 'Open' verb is executed on them. It's configured in Windows not in VFP.

Cannot access the selected table (Error 1152)

The error is related to the RowSource or ControlSource of a ListBox/ComboBox.

Possible sources of this error:

  1. The RowSource cursor for ListBox/ComboBox has been closed or recreated in another work area. It seems that a ListBox/ComboBox remembers connection with its RowSource by workarea number not by alias. Setting ListBox/ComboBox RowSource to an empty string before query is run and restoring after would help.

Is user a member of the Administrators group

Sometimes it's important to know if application is running under account that is a member of the Administrators group. There're a few ways to accomplish that.

Obtaining DLL-specific version information

Most Windows Shell and common controls DLLs implement DllGetVersion function. It allows applications to obtain DLL-specific version information to make sure that required functionality in a DLL is implemented.
The Windows API support class is used to handle Windows API structures.



VFP implementation of GetZipComment and GetZipFilesList for ZIP acrchives

VFP class below allows retrieval of a ZIP file comment or a list/count of files in the ZIP archive. It uses VFP low level file functions (LLFF) to directly read the ZIP file.


Subscribe to The Bereznikers RSS