Many language topics in Help contain code examples that you can run in a program window. You must install the sample application files provided by choosing the MSDN Library option during Setup. For more information, see Chapter 1, Installing Visual FoxPro in the Installation Guide.
To run a code example
Important You must select the entire code example in order to preserve the paragraph formatting for each line of code. Otherwise the paragraphs will be ignored when you paste the code into the program window and the code won't run.
–or-
Choose New from the File menu in Visual FoxPro, click the Program option button in the New dialog box, then click the New File button.