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.
ActiveX security updates for VFP 8.0 and VFP 9.0
MS security bulletin MS08-070 - Vulnerabilities in ActiveX Controls Could Allow Remote Code Execution (932349)
lists MS products affected including VFP 8.0 and VFP 9.0
Simple line wrap for a message box
When message is too long VFP message box provides a line wrap but it stretches out almost of the with of the screen. It's easy to implement a line wrap to specified number of characters using VFP memo handling capabilities.
GDI+ security updates for VFP 8.0 and VFP 9.0
MS security bulletin MS08-052 - Vulnerabilities in GDI+ Could Allow Remote Code Execution (954593) lists many MS products affected including VFP 8.0 and VFP 9.0
How to disable Task Pane Manager
Either of below will disable Task Pane Manager launch on VFP startup:
Retrieving Printer Capabilities
In Enumerating printer forms article the DeviceCapabilities
function is used to mark print forms supported by particular printer. It can be used to retrieve other printer capabilities as well.
Getting additional info about pressed keyboard or mouse keys
The GetKeyState
function retrieves the status of the specified virtual key.
Keyboard Input Virtual-Key Codes
Virtual-Key Codes constants for Windows API Keyboard Input functions
Verify ActiveX presence and registration
An ActiveX installation on PC can be verified by finding its ProgID from OleClass property in the registry.