Included for backward compatibility. Use the TextBox Control instead.

This command is undocumented in the original VFP9 help file,
but the following documentation was found in the FoxPro for Windows 2.6 help, and may still be valid:

Accepts character string data from the screen.

ACCEPT [expC] TO memvar

Parameters

expC
 The character expression expC is the prompt text that appears next to the area in which data is entered. In FoxPro for Windows and FoxPro for Macintosh, the prompt text appears in the same font as the font of the main FoxPro window. However, the character data you enter appears in 9 point FoxFont.

memvar
 The memory variable or array element in which the character data is stored is specified with memvar. If the memory variable or array element isn't defined, it is automatically created by ACCEPT.

 If you press Enter without entering data, the memory variable or array element contains the null string. If you press Esc when SET ESCAPE is OFF, the memory variable contains the null string. If you press Esc when SET ESCAPE is ON, program execution is suspended.

Expand imageRemarks

Expand imageExample

Expand imageSee Also