Tip Bank

DevX - Software Development Resource

MaxSystemColors – The number of screen colors

Private Declare Function GetDesktopWindow Lib “user32” () As LongPrivate Declare Function GetDC Lib “user32” (ByVal hWnd As Long) As LongPrivate Declare Function ReleaseDC Lib “user32” (ByVal hWnd As Long, _

DevX - Software Development Resource

MinimizeAllWindows – Minimize and restore all windows

Private Declare Function FindWindow Lib “user32” Alias “FindWindowA” (ByVal _ lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function SendMessage Lib “user32” Alias “SendMessageA” (ByVal _ hwnd

DevX - Software Development Resource

Let the user copy floppy disks

The simplest way to help user copy a floppy disk is display the Copy Disk system dialog. You can do this with a one-line statement: Shell “rundll32.exe diskcopy.dll,DiskCopyRunDll 0,0”

DevX - Software Development Resource

Help Files in Applications

Question: I created a “help” button in a form and coded this button’s click event as: { help } The code { set help to MyHelp.chm }is included in the

DevX - Software Development Resource

ASP

Question: I’m working with ASP to retrieve records, but I keep getting an “Unexpected Error” near my recordset function. Why? Answer: Pinpointing exactly what’s wrong would be hard without actually

DevX - Software Development Resource

Creating an Application Setup Wizard

Question: How do I create an Application Setup Wizard from Visual FoxPro? Answer: VFP ships with a Setup Wizard, which builds three different types of installations: Standalone, Network, and Web.

DevX - Software Development Resource

Current Time in Query

Question: Can I include something in the title line of a query to include the current date/time? Answer: You can use the GETDATE() function to return the current date and