EVALUATE()

Accept, Input

These are antique, obsolete, dinosaurous ways to get user input. They date back to the very origins of Xbase. Don't use them.

Usage

ACCEPT [ cPrompt ] TO cVariable INPUT [ cPrompt ] TO Variable
ACCEPT can be used only for character input. INPUT accepts characters, numbers, dates, datetimes, logicals and currency, but characters must be delimited by quotes or square brackets, logicals (and .NULL.) by periods, dates and datetimes by curly brackets, and currency preceded by your currency symbol.

Not only are these commands totally obscure, but the results are likely to be ugly. The prompt is displayed in the font of the window that contains it, while the user's input is always displayed in 9-point FoxFont. That's as good a reason as any to stay away from these commands.

Example

ACCEPT "Enter a String" TO cStr INPUT "Enter a Number" TO nNum

See Also

Form, InputBox(), TextBox, Wait


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net