Winput
Obsolete
This command is replaced by the DataFlex Debugger.
Purpose
To accept a line of input from the keyboard and move it to a variable. This command is for use only during program development and should not be included in finished applications.
Syntax
winput [prompt] variable [max_length]
- If used,
promptmust be enclosed in double (") or single (') quotation marks. max_lengthis the maximum allowed length of the input string.
What It Does
Winput stops the execution of the program and activates a special-purpose dialog box at the top left of the screen. This box displays prompt if it was included in the command. When users press the OK button, winput moves the keyed-in data to variable, deactivates the dialog box, and resumes execution of the program.
If no data is input before the accelerator key is pressed, the value of variable will be:
- Null if it is a String
- Zero if it is a Number or Date
This command is suitable for use only during program development and should not be used in finished applications.
Showln "Current object is" (name(self))
winput sTemp
Notes
- If users enter data that doesn't match the data type of
variable, DataFlex will declare an error after the dialog is closed. This would occur, for example, if you tried to input alphabetic letters into a Number typevariable.