input accepts empty answer

Aug 16, 2008
124
0
input and inkey accept empty answers ("just Enter") even when /k sets the valid keys ("input /k"::^[yn]$" Database type: %%database_type" for example). Is there a way to prohibit the empty answer?
 
May 20, 2008
11,400
99
Syracuse, NY, USA
input and inkey accept empty answers ("just Enter") even when /k sets the valid keys ("input /k"::^[yn]$" Database type: %%database_type" for example). Is there a way to prohibit the empty answer?
Here, INKEY accepts only the specified keys. This, below, does not accept "Enter".
Code:
inkey /k"yn" %%zz
 
Aug 16, 2008
124
0
I can confirm this: inkey does not accept while input does accept an empty answer. Thread title adjusted.
 
Aug 16, 2008
124
0
The problem here is the EMPTY Enter. I suggest a minimum length parameter (input already has a maximum length parameter)
 
Similar threads
Thread starter Title Forum Replies Date
S INPUT fails if the entered text contains pair of square brackets Support 6
Joe Caverly Command Input Syntax Colouring Support 3
T Disable audible beep on input and inkey Support 2
WinLanEm INPUT problem Support 1
rps Command Input Window tab completion broken Support 7
D Documentation Using "send all input to other tabs" Support 11
J Input text converts to uppercase Support 1
B Select and run lines from Command Input panel? Support 1
Charles Dye TYPE /P behaves strangely with piped/redirected input Support 0
T command input font Support 2
ehab aboudaya How to? Command Input history for each tab? Support 0
M How to? How do I read a Unicode file through standard-input? Support 4
Joe Caverly How to? Function Key With INPUT Support 5
E Saving out Command Input window Support 4
J VIEW crash on redirected input and numbered bookmarks Support 6
J Keyboard input error Support 6
vefatica TCMD tabs and input focus Support 11
daniel347x Is it possible to send a line from the "command input" window to the tab without pressing "Enter", w Support 4
Stefano Piccardi how to @SELECT redirected input? Support 4
A GNU ed won't accept redirected input Support 0
G Command Input window Support 2
dcantor Suggestion for @DATE[] input Support 2
J Command line completion in the "Command Input" Window Support 3
Charles Dye INPUT prompt oddity Support 5
E Environment variables, set and input Support 2
D Help says @fileage accepts u argument Support 3
gentzel Directory stack empty when running TCEXIT? Support 9
Chen Touboul When i try to delete an empty folder i got "the dirctoy name is invalid" Support 3
M WAD "Pictures" directory is empty in TCC but not in CMD or Explorer Support 4
thorntonpg sync /S /F creating empty directories Support 5
D Directory stack empty Support 1
vefatica Empty .watch files saved Support 0
M Forums appear empty if I'm not logged in Support 2
A How to? Frozen session tab with "ERROR: The file is either empty or does not contain the valid choices." Support 19
C How to? List empty folders Support 21
L WAD File-popup Window nearly empty Support 6
T dir /h error in empty directory Support 22
C MOVE making empty destinatation sub-folders Support 10
D LIST command wierdness with empty Unicode file Support 1
vefatica DO variable left with empty value Support 0
rconn Installer leaves directory empty Support 7
CWBillow Ditching empty folders Support 11
Charles Dye Create empty registry value? Support 5

Similar threads